import java.awt.Color;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.UIManager;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;


//VS4E -- DO NOT REMOVE THIS LINE!
public class GameFrame extends JFrame implements Runnable {

	private static final long serialVersionUID = 1L;
	
	//INSTANTIATIONS OF CLASSES
	Player orderedPlayer[] = new Player[8];
	Board board = new Board();
	Dice dice[] = new Dice[2];
	
	//TEMPORARY STORAGE
	URL myUrl;
	
	//SOUNDS
	java.applet.AudioClip sound;
	java.applet.Applet app;

	//BOOLEANS
	public boolean isGodMode = false;
	public boolean isIgnored = true;
	public boolean isMoneyShowed = false;
	public boolean checkRollDice = false;
	public boolean checkEndTurn = false;
	
	//INTEGERS
	static int acceptButtonOption;
	public int tileClicked;
	static int chestNumber;
	static int chanceNumber;
	static int rent;
	public int godModeDice1 = 0, godModeDice2 = 0;
	public int counter = 0;
	public int counter2 = 0;
	static int numberOfPlayers;
	static int numberOfAlivePlayers;
	
	//THREAD VARIABLES
	Thread t;
	private boolean isRunning = false;
	private boolean isRolling = false;
	private boolean isWaiting = false;
	private boolean isFading = false;
	private boolean isLaughing = false;
	static int rollsLeft = 0;
	static int waitsLeft = 0;
	static int runsLeft = 0;
	static int fadesLeft = 0;
	static int laughsLeft = 0;
	
	//TOKENS
	private JLabel token1;
	private JLabel token2;
	private JLabel token3;
	private JLabel token4;
	private JLabel token5;
	private JLabel token6;
	private JLabel token7;
	private JLabel token8;
	
	//CHANGE BACKGROUND FEATURE
	private JLabel gameBoard;
	private JButton changeBackground1;
	private JButton changeBackground2;
	private JButton changeBackground3;
	private JButton changeBackground4;

	//ACCEPT BUTTONS
	private JButton acceptButton;
	private JButton acceptButton2;
	private JTextField property1TextField;
	private JTextField property2TextField;

	//DOCK BUTTONS
	private JButton rollDiceButton;
	private JButton endTurnButton;
	private JButton buildButton;
	private JButton sellButton;
	private JButton tradeButton;
	private JButton mortgageButton;
	private JButton redeemButton;
	
	//OTHER BUTTONS 
	private JButton auctionButton;
	private JButton tenPercentTaxButton;
	private JButton twoMillionTaxButton;
	private JButton rollForDoubles;
	private JButton postBail;
	private JButton keyButton;
	private JButton declareBankruptcy;
	private JButton reviewAssets;
	
	//NOTEBOOKS
	private JLabel notebook1;
	private JLabel notebook2;
	private JLabel notebook3;
	private JLabel notebook4;
	private JLabel notebook5;
	private JLabel notebook6;
	private JLabel notebook7;
	private JLabel notebook8;
	private JLabel notebook9;
	private JLabel notebook10;
	
	//VISUALS
	private JLabel frame;
	private JLabel bankruptcyFrame;
	private JLabel bankruptcyText;
	private JLabel godModeLabel;
	private JLabel showTile;
	private JLabel chanceCardLabel;
	private JLabel chestCardLabel;
	private JButton dice1;
	private JButton dice2;
	private JButton doubleDiceButton;
	private JButton chooseTradeeButton;
	private JButton chooseHighestBidderButton;
	private JTextField bankruptedTextField;
	
	//SHOW CURRENT PLAYER ON TOP RIGHT FEATURE
	private JLabel currentToken; //token
	private JTextField playerTextField; //name
	private JTextField playerPositionTextField; //position
	private JTextField playerMoneyTextField; //money
	
	//SHOW STATS FEATURE
	private JButton showStats; //trigger
	private JLabel playerMoneyGlass; //text fields' background
	private JTextField player1Money;
	private JTextField player2Money;
	private JTextField player3Money;
	private JTextField player4Money;
	private JTextField player5Money;
	private JTextField player6Money;
	private JTextField player7Money;
	private JTextField player8Money;
	
	//ROOFS
	private JLabel tile1Owner;
	private JLabel tile3Owner;
	private JLabel tile5Owner;
	private JLabel tile6Owner;
	private JLabel tile8Owner;
	private JLabel tile9Owner;
	private JLabel tile11Owner;
	private JLabel tile12Owner;
	private JLabel tile13Owner;
	private JLabel tile14Owner;
	private JLabel tile15Owner;
	private JLabel tile16Owner;
	private JLabel tile18Owner;
	private JLabel tile19Owner;
	private JLabel tile21Owner;
	private JLabel tile23Owner;
	private JLabel tile24Owner;
	private JLabel tile25Owner;
	private JLabel tile26Owner;
	private JLabel tile27Owner;
	private JLabel tile28Owner;
	private JLabel tile29Owner;
	private JLabel tile31Owner;
	private JLabel tile32Owner;
	private JLabel tile34Owner;
	private JLabel tile35Owner;
	private JLabel tile37Owner;
	private JLabel tile39Owner;
	
	//BABY DEEDS
	private JButton babyDeed1;
	private JButton babyDeed3;
	private JButton babyDeed5;
	private JButton babyDeed6;
	private JButton babyDeed8;
	private JButton babyDeed9;
	private JButton babyDeed11;
	private JButton babyDeed12;
	private JButton babyDeed13;
	private JButton babyDeed14;
	private JButton babyDeed15;
	private JButton babyDeed16;
	private JButton babyDeed18;
	private JButton babyDeed19;
	private JButton babyDeed21;
	private JButton babyDeed23;
	private JButton babyDeed24;
	private JButton babyDeed25;
	private JButton babyDeed26;
	private JButton babyDeed27;
	private JButton babyDeed28;
	private JButton babyDeed29;
	private JButton babyDeed31;
	private JButton babyDeed32;
	private JButton babyDeed34;
	private JButton babyDeed35;
	private JButton babyDeed37;
	private JButton babyDeed39;
	private JButton babyDeedKey1;
	private JButton babyDeedKey2;
	
	//HOTELS AND HOUSES
	private JLabel tile1House;
	private JLabel tile3House;
	private JLabel tile6House;
	private JLabel tile8House;
	private JLabel tile9House;
	private JLabel tile11House;
	private JLabel tile13House;
	private JLabel tile14House;
	private JLabel tile16House;
	private JLabel tile18House;
	private JLabel tile19House;
	private JLabel tile21House;
	private JLabel tile23House;
	private JLabel tile24House;
	private JLabel tile26House;
	private JLabel tile27House;
	private JLabel tile29House;
	private JLabel tile31House;
	private JLabel tile32House;
	private JLabel tile34House;
	private JLabel tile37House;
	private JLabel tile39House;
	
	//TILES
	private JButton cell0;
	private JButton cell1;
	private JButton cell2;
	private JButton cell3;
	private JButton cell4;
	private JButton cell5;
	private JButton cell6;
	private JButton cell7;
	private JButton cell8;
	private JButton cell9;
	private JButton cell10;
	private JButton cell11;
	private JButton cell12;
	private JButton cell13;
	private JButton cell14;
	private JButton cell15;
	private JButton cell16;
	private JButton cell17;
	private JButton cell18;
	private JButton cell19;
	private JButton cell20;
	private JButton cell21;
	private JButton cell22;
	private JButton cell23;
	private JButton cell24;
	private JButton cell25;
	private JButton cell26;
	private JButton cell27;
	private JButton cell28;
	private JButton cell29;
	private JButton cell30;
	private JButton cell31;
	private JButton cell32;
	private JButton cell33;
	private JButton cell34;
	private JButton cell35;
	private JButton cell36;
	private JButton cell37;
	private JButton cell38;
	private JButton cell39;
	
	private JButton chooseTradee1;
	private JButton chooseTradee2;
	private JButton chooseTradee3;
	private JButton chooseTradee4;
	private JButton chooseTradee5;
	private JButton chooseTradee6;
	private JButton chooseTradee7;
	private JButton chooseTradee8;
	
	
	private static final String PREFERRED_LOOK_AND_FEEL = "javax.swing.plaf.metal.MetalLookAndFeel";
	public GameFrame() {
		initComponents();
	}

	private void initComponents() {
		setTitle("Monopoly");
		setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/images/icon.png")));
		setResizable(false);
		setLayout(new GroupLayout());

		//TOKENS
		add(getToken1(), new Constraints(new Leading(626, 10, 10), new Leading(626, 10, 10)));
		add(getToken2(), new Constraints(new Leading(626, 10, 10), new Leading(626, 10, 10)));
		add(getToken3(), new Constraints(new Leading(626, 12, 12), new Leading(626, 12, 12)));
		add(getToken4(), new Constraints(new Leading(626, 10, 10), new Leading(626, 12, 12)));
		add(getToken5(), new Constraints(new Leading(626, 10, 10), new Leading(626, 12, 12)));
		add(getToken6(), new Constraints(new Leading(626, 10, 10), new Leading(626, 12, 12)));
		add(getToken8(), new Constraints(new Leading(626, 10, 10), new Leading(626, 10, 10)));
		add(getToken7(), new Constraints(new Leading(626, 10, 10), new Leading(626, 12, 12)));
		
		//TILES
		add(cell0(), new Constraints(new Leading(604, 10, 10), new Leading(604, 10, 10)));
		add(cell1(), new Constraints(new Leading(548, 10, 10), new Leading(604, 10, 10)));
		add(cell2(), new Constraints(new Leading(492, 10, 10), new Leading(604, 10, 10)));
		add(cell3(), new Constraints(new Leading(435, 10, 10), new Leading(604, 10, 10)));
		add(cell4(), new Constraints(new Leading(378, 10, 10), new Leading(604, 10, 10)));
		add(cell5(), new Constraints(new Leading(323, 10, 10), new Leading(604, 10, 10)));
		add(cell6(), new Constraints(new Leading(266, 10, 10), new Leading(604, 10, 10)));
		add(cell7(), new Constraints(new Leading(210, 10, 10), new Leading(604, 10, 10)));
		add(cell8(), new Constraints(new Leading(154, 10, 10), new Leading(604, 10, 10)));
		add(cell9(), new Constraints(new Leading(99, 10, 10), new Leading(604, 10, 10)));
		add(cell10(), new Constraints(new Leading(5, 10, 10), new Leading(604, 10, 10)));
		add(cell11(), new Constraints(new Leading(5, 10, 10), new Leading(548, 10, 10)));
		add(cell12(), new Constraints(new Leading(5, 10, 10), new Leading(492, 10, 10)));
		add(cell13(), new Constraints(new Leading(5, 10, 10), new Leading(435, 10, 10)));
		add(cell14(), new Constraints(new Leading(5, 10, 10), new Leading(378, 10, 10)));
		add(cell15(), new Constraints(new Leading(5, 10, 10), new Leading(323, 10, 10)));
		add(cell16(), new Constraints(new Leading(5, 10, 10), new Leading(266, 10, 10)));
		add(cell17(), new Constraints(new Leading(5, 10, 10), new Leading(210, 10, 10)));
		add(cell18(), new Constraints(new Leading(5, 10, 10), new Leading(154, 10, 10)));
		add(cell19(), new Constraints(new Leading(5, 10, 10), new Leading(99, 10, 10)));
		add(cell20(), new Constraints(new Leading(5, 10, 10), new Leading(5, 10, 10)));
		add(cell21(), new Constraints(new Leading(99, 10, 10), new Leading(5, 10, 10)));
		add(cell22(), new Constraints(new Leading(154, 10, 10), new Leading(5, 10, 10)));
		add(cell23(), new Constraints(new Leading(210, 10, 10), new Leading(5, 10, 10)));
		add(cell24(), new Constraints(new Leading(266, 10, 10), new Leading(5, 10, 10)));
		add(cell25(), new Constraints(new Leading(323, 10, 10), new Leading(5, 10, 10)));
		add(cell26(), new Constraints(new Leading(378, 10, 10), new Leading(5, 10, 10)));
		add(cell27(), new Constraints(new Leading(435, 10, 10), new Leading(5, 10, 10)));
		add(cell28(), new Constraints(new Leading(492, 10, 10), new Leading(5, 10, 10)));
		add(cell29(), new Constraints(new Leading(548, 10, 10), new Leading(5, 10, 10)));
		add(cell30(), new Constraints(new Leading(604, 10, 10), new Leading(5, 10, 10)));
		add(cell31(), new Constraints(new Leading(604, 10, 10), new Leading(99, 10, 10)));
		add(cell32(), new Constraints(new Leading(604, 10, 10), new Leading(154, 10, 10)));
		add(cell33(), new Constraints(new Leading(604, 10, 10), new Leading(210, 10, 10)));
		add(cell34(), new Constraints(new Leading(604, 10, 10), new Leading(266, 10, 10)));
		add(cell35(), new Constraints(new Leading(604, 10, 10), new Leading(323, 10, 10)));
		add(cell36(), new Constraints(new Leading(604, 10, 10), new Leading(378, 10, 10)));
		add(cell37(), new Constraints(new Leading(604, 10, 10), new Leading(435, 10, 10)));
		add(cell38(), new Constraints(new Leading(604, 10, 10), new Leading(492, 10, 10)));
		add(cell39(), new Constraints(new Leading(604, 10, 10), new Leading(548, 10, 10)));
		
		//BABY DEEDS
		add(babyDeed1(), new Constraints(new Leading(713, 10, 10), new Leading(429, 10, 10)));
		add(babyDeed3(), new Constraints(new Leading(740, 10, 10), new Leading(429, 10, 10)));
		add(babyDeed5(), new Constraints(new Leading(796, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed6(), new Constraints(new Leading(713, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed8(), new Constraints(new Leading(740, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed9(), new Constraints(new Leading(768, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed11(), new Constraints(new Leading(713, 10, 10), new Leading(489, 10, 10)));
		add(babyDeed12(), new Constraints(new Leading(796, 10, 10), new Leading(519, 10, 10)));
		add(babyDeed13(), new Constraints(new Leading(740, 10, 10), new Leading(489, 10, 10)));
		add(babyDeed14(), new Constraints(new Leading(768, 10, 10), new Leading(489, 10, 10)));
		add(babyDeed15(), new Constraints(new Leading(823, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed16(), new Constraints(new Leading(713, 10, 10), new Leading(519, 10, 10)));
		add(babyDeed18(), new Constraints(new Leading(740, 10, 10), new Leading(519, 10, 10)));
		add(babyDeed19(), new Constraints(new Leading(768, 10, 10), new Leading(519, 10, 10)));
		add(babyDeed21(), new Constraints(new Leading(713, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed23(), new Constraints(new Leading(740, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed24(), new Constraints(new Leading(768, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed25(), new Constraints(new Leading(849, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed26(), new Constraints(new Leading(796, 10, 10), new Leading(429, 10, 10)));
		add(babyDeed27(), new Constraints(new Leading(823, 10, 10), new Leading(429, 10, 10)));
		add(babyDeed28(), new Constraints(new Leading(823, 10, 10), new Leading(519, 10, 10)));
		add(babyDeed29(), new Constraints(new Leading(849, 10, 10), new Leading(429, 10, 10)));
		add(babyDeed31(), new Constraints(new Leading(796, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed32(), new Constraints(new Leading(823, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed34(), new Constraints(new Leading(849, 10, 10), new Leading(459, 10, 10)));
		add(babyDeed35(), new Constraints(new Leading(876, 10, 10), new Leading(549, 10, 10)));
		add(babyDeed37(), new Constraints(new Leading(796, 10, 10), new Leading(489, 10, 10)));
		add(babyDeed39(), new Constraints(new Leading(823, 10, 10), new Leading(489, 10, 10)));
		add(babyDeedKey1(), new Constraints(new Leading(849, 10, 10), new Leading(519, 10, 10)));
		add(babyDeedKey2(), new Constraints(new Leading(876, 10, 10), new Leading(519, 10, 10)));
		
		//BUTTONS
		add(acceptButton(), new Constraints(new Leading(191, 12, 12), new Leading(428, 12, 12)));
		add(acceptButton2(), new Constraints(new Leading(430, 12, 12), new Leading(296, 12, 12)));
		add(auctionButton(), new Constraints(new Leading(460, 12, 12), new Leading(340, 12, 12)));
		add(endTurnButton(), new Constraints(new Leading(120, 10, 10), new Leading(545, 12, 12)));
		add(buildButton(), new Constraints(new Leading(181, 10, 10), new Leading(545, 10, 10)));
		add(sellButton(), new Constraints(new Leading(230, 10, 10), new Leading(545, 10, 10)));
		add(mortgageButton(), new Constraints(new Leading(290, 10, 10), new Leading(545, 10, 10)));
		add(redeemButton(), new Constraints(new Leading(359, 10, 10), new Leading(546, 10, 10)));
		add(tradeButton(), new Constraints(new Leading(418, 10, 10), new Leading(545, 10, 10)));
		add(getRollDiceButton(), new Constraints(new Leading(483, 10, 10), new Leading(545, 12, 12)));
		add(tenPercentTaxButton(), new Constraints(new Leading(346, 12, 12), new Leading(276, 12, 12)));
		add(twoMillionTaxButton(), new Constraints(new Leading(279, 12, 12), new Leading(276, 12, 12)));
		add(declareBankruptcy(), new Constraints(new Leading(406, 10, 10), new Leading(466, 12, 12)));
		add(reviewAssets(), new Constraints(new Leading(303, 10, 10), new Leading(466, 10, 10)));
		add(postBail(), new Constraints(new Leading(234, 10, 10), new Leading(425, 12, 12)));
		add(rollForDoubles(), new Constraints(new Leading(236, 10, 10), new Leading(400, 10, 10)));
		add(keyButton(), new Constraints(new Leading(394, 10, 10), new Leading(392, 10, 10)));
		add(showStats(), new Constraints(new Leading(133, 10, 10), new Leading(515, 10, 10)));
		add(changeBackground1(), new Constraints(new Leading(840, 10, 10), new Leading(675, 10, 10)));
		add(changeBackground2(), new Constraints(new Leading(855, 10, 10), new Leading(675, 10, 10)));
		add(changeBackground3(), new Constraints(new Leading(870, 10, 10), new Leading(675, 10, 10)));
		add(changeBackground4(), new Constraints(new Leading(885, 10, 10), new Leading(675, 10, 10)));
		add(getDice1(), new Constraints(new Leading(495, 10, 10), new Leading(512, 12, 12)));
		add(getDice2(), new Constraints(new Leading(527, 10, 10), new Leading(512, 12, 12)));

		add(chooseTradee1(), new Constraints(new Leading(142, 10, 10), new Leading(344, 10, 10)));
		add(chooseTradee2(), new Constraints(new Leading(142, 10, 10), new Leading(364, 10, 10)));
		add(chooseTradee3(), new Constraints(new Leading(142, 10, 10), new Leading(384, 10, 10)));
		add(chooseTradee4(), new Constraints(new Leading(142, 10, 10), new Leading(404, 10, 10)));
		add(chooseTradee5(), new Constraints(new Leading(142, 10, 10), new Leading(424, 10, 10)));
		add(chooseTradee6(), new Constraints(new Leading(142, 10, 10), new Leading(444, 10, 10)));
		add(chooseTradee7(), new Constraints(new Leading(142, 10, 10), new Leading(464, 10, 10)));
		add(chooseTradee8(), new Constraints(new Leading(142, 10, 10), new Leading(484, 10, 10)));
		
		//FRONT TEXTFIELDS
		add(getPlayerTextField(), new Constraints(new Leading(714, 189, 12, 12), new Leading(10, 28, 12, 12)));
		add(getPlayerPositionTextField(), new Constraints(new Leading(716, 159, 10, 10), new Leading(91, 10, 10)));
		add(getPlayerMoneyTextField(), new Constraints(new Leading(716, 165, 10, 10), new Leading(136, 10, 10)));
		add(property1TextField(), new Constraints(new Leading(240, 189, 12, 12), new Leading(301, 28, 12, 12)));
		add(property2TextField(), new Constraints(new Leading(240, 159, 10, 10), new Leading(325, 10, 10)));
		
		//VISUALS
		add(godModeLabel(), new Constraints(new Leading(703, 10, 10), new Leading(47, 10, 10)));
		add(notebook1(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook2(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook3(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook4(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook5(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook6(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook7(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook8(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook9(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(notebook10(), new Constraints(new Leading(241, 10, 10), new Leading(297, 10, 10)));
		add(bankruptedTextField(), new Constraints(new Leading(302, 170, 10, 10), new Leading(413, 10, 10)));
		add(chestCardLabel(), new Constraints(new Leading(202, 10, 10), new Leading(223, 10, 10)));
		add(chanceCardLabel(), new Constraints(new Leading(202, 10, 10), new Leading(223, 10, 10)));
		add(frame(), new Constraints(new Leading(179, 10, 10), new Leading(172, 10, 10)));
		add(bankruptcyText(), new Constraints(new Leading(160, 10, 10), new Leading(470, 10, 10)));
		add(bankruptcyFrame(), new Constraints(new Leading(130, 10, 10), new Leading(185, 10, 10)));
		add(chooseTradeeButton(), new Constraints(new Leading(285, 10, 10), new Leading(390, 12, 12)));
		add(chooseHighestBidderButton(), new Constraints(new Leading(285, 10, 10), new Leading(390, 12, 12)));
		add(doubleDiceButton(), new Constraints(new Leading(416, 10, 10), new Leading(438, 12, 12)));
		add(showTile(), new Constraints(new Leading(704, 10, 10), new Leading(173, 10, 10)));
		add(currentToken(), new Constraints(new Leading(815, 10, 10), new Leading(55, 10, 10)));
		
		//STATS
		add(player1Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(340, 28, 12, 12)));
		add(player2Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(360, 28, 12, 12)));
		add(player3Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(380, 28, 12, 12)));
		add(player4Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(400, 28, 12, 12)));
		add(player5Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(420, 28, 12, 12)));
		add(player6Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(440, 28, 12, 12)));
		add(player7Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(460, 28, 12, 12)));
		add(player8Money(), new Constraints(new Leading(150, 189, 12, 12), new Leading(480, 28, 12, 12)));
		add(playerMoneyGlass(), new Constraints(new Leading(133, 10, 10), new Leading(330, 10, 10)));
		
		//ROOFS
		add(tile1Owner(), new Constraints(new Leading(550, 10, 10), new Leading(584, 10, 10)));
		add(tile3Owner(), new Constraints(new Leading(438, 10, 10), new Leading(584, 10, 10)));
		add(tile5Owner(), new Constraints(new Leading(326, 10, 10), new Leading(584, 10, 10)));
		add(tile6Owner(), new Constraints(new Leading(270, 10, 10), new Leading(584, 10, 10)));
		add(tile8Owner(), new Constraints(new Leading(158, 10, 10), new Leading(584, 10, 10)));
		add(tile9Owner(), new Constraints(new Leading(102, 10, 10), new Leading(584, 10, 10)));
		add(tile11Owner(), new Constraints(new Leading(101, 10, 10), new Leading(549, 10, 10)));
		add(tile12Owner(), new Constraints(new Leading(101, 10, 10), new Leading(493, 10, 10)));
		add(tile13Owner(), new Constraints(new Leading(101, 10, 10), new Leading(437, 10, 10)));
		add(tile14Owner(), new Constraints(new Leading(101, 10, 10), new Leading(381, 10, 10)));
		add(tile15Owner(), new Constraints(new Leading(101, 10, 10), new Leading(325, 10, 10)));
		add(tile16Owner(), new Constraints(new Leading(101, 10, 10), new Leading(269, 10, 10)));
		add(tile18Owner(), new Constraints(new Leading(101, 10, 10), new Leading(157, 10, 10)));
		add(tile19Owner(), new Constraints(new Leading(101, 10, 10), new Leading(101, 10, 10)));
		add(tile29Owner(), new Constraints(new Leading(550, 10, 10), new Leading(101, 10, 10)));
		add(tile28Owner(), new Constraints(new Leading(494, 10, 10), new Leading(101, 10, 10)));
		add(tile27Owner(), new Constraints(new Leading(438, 10, 10), new Leading(101, 10, 10)));
		add(tile26Owner(), new Constraints(new Leading(382, 10, 10), new Leading(101, 10, 10)));
		add(tile25Owner(), new Constraints(new Leading(326, 10, 10), new Leading(101, 10, 10)));
		add(tile24Owner(), new Constraints(new Leading(270, 10, 10), new Leading(101, 10, 10)));
		add(tile23Owner(), new Constraints(new Leading(214, 10, 10), new Leading(101, 10, 10)));
		add(tile21Owner(), new Constraints(new Leading(102, 10, 10), new Leading(101, 10, 10)));
		add(tile39Owner(), new Constraints(new Leading(584, 10, 10), new Leading(549, 10, 10)));
		add(tile37Owner(), new Constraints(new Leading(584, 10, 10), new Leading(437, 10, 10)));
		add(tile35Owner(), new Constraints(new Leading(584, 10, 10), new Leading(325, 10, 10)));
		add(tile34Owner(), new Constraints(new Leading(584, 10, 10), new Leading(269, 10, 10)));
		add(tile32Owner(), new Constraints(new Leading(584, 10, 10), new Leading(157, 10, 10)));
		add(tile31Owner(), new Constraints(new Leading(584, 10, 10), new Leading(101, 10, 10)));

		//HOTELS AND HOUSES
		add(tile1House(), new Constraints(new Leading(548, 10, 10), new Leading(603, 10, 10)));
		add(tile3House(), new Constraints(new Leading(437, 10, 10), new Leading(603, 10, 10)));
		add(tile6House(), new Constraints(new Leading(269, 10, 10), new Leading(603, 10, 10)));
		add(tile8House(), new Constraints(new Leading(157, 10, 10), new Leading(603, 10, 10)));
		add(tile9House(), new Constraints(new Leading(101, 10, 10), new Leading(603, 10, 10)));
		add(tile11House(), new Constraints(new Leading(78, 10, 10), new Leading(548, 10, 10)));
		add(tile13House(), new Constraints(new Leading(78, 10, 10), new Leading(436, 10, 10)));
		add(tile14House(), new Constraints(new Leading(78, 10, 10), new Leading(380, 10, 10)));
		add(tile16House(), new Constraints(new Leading(78, 10, 10), new Leading(268, 10, 10)));
		add(tile18House(), new Constraints(new Leading(78, 10, 10), new Leading(156, 10, 10)));
		add(tile19House(), new Constraints(new Leading(78, 10, 10), new Leading(100, 10, 10)));
		add(tile21House(), new Constraints(new Leading(101, 10, 10), new Leading(78, 10, 10)));
		add(tile23House(), new Constraints(new Leading(213, 10, 10), new Leading(78, 10, 10)));
		add(tile24House(), new Constraints(new Leading(269, 10, 10), new Leading(78, 10, 10)));
		add(tile26House(), new Constraints(new Leading(381, 10, 10), new Leading(78, 10, 10)));
		add(tile27House(), new Constraints(new Leading(437, 10, 10), new Leading(78, 10, 10)));
		add(tile29House(), new Constraints(new Leading(549, 10, 10), new Leading(78, 10, 10)));
		add(tile31House(), new Constraints(new Leading(603, 10, 10), new Leading(100, 10, 10)));
		add(tile32House(), new Constraints(new Leading(603, 10, 10), new Leading(156, 10, 10)));
		add(tile34House(), new Constraints(new Leading(603, 10, 10), new Leading(268, 10, 10)));
		add(tile37House(), new Constraints(new Leading(603, 10, 10), new Leading(436, 10, 10)));
		add(tile39House(), new Constraints(new Leading(603, 10, 10), new Leading(548, 10, 10)));
		
		//BACKGROUND IMAGE
		add(getGameBoard(), new Constraints(new Leading(0, 12, 12), new Leading(0, 12, 12)));
		
		setSize(910, 700);
		setDefaultCloseOperation(GameFrame.EXIT_ON_CLOSE);
		getContentPane().setPreferredSize(getSize());
		pack();
		setLocationRelativeTo(null);
		setVisible(false);
	}

	private JLabel godModeLabel() {
		if (godModeLabel == null) {
			godModeLabel = new JLabel();
			godModeLabel.setIcon(new ImageIcon(getClass().getResource("/images/godModeLabel.png")));
			godModeLabel.setVisible(false);
		}
		return godModeLabel;
	}
	private JLabel bankruptcyText() {
		if (bankruptcyText == null) {
			bankruptcyText = new JLabel();
			bankruptcyText.setIcon(new ImageIcon(getClass().getResource("/images/bankruptcyText_p.png")));
		}
		return bankruptcyText;
	}
	private JLabel notebook1() {
		if (notebook1 == null) {
			notebook1 = new JLabel();
			notebook1.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook1;
	}
	private JLabel notebook2() {
		if (notebook2 == null) {
			notebook2 = new JLabel();
			notebook2.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook2;
	}
	private JLabel notebook3() {
		if (notebook3 == null) {
			notebook3 = new JLabel();
			notebook3.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook3;
	}
	private JLabel notebook4() {
		if (notebook4 == null) {
			notebook4 = new JLabel();
			notebook4.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook4;
	}
	private JLabel notebook5() {
		if (notebook5 == null) {
			notebook5 = new JLabel();
			notebook5.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook5;
	}
	private JLabel notebook6() {
		if (notebook6 == null) {
			notebook6 = new JLabel();
			notebook6.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook6;
	}
	private JLabel notebook7() {
		if (notebook7 == null) {
			notebook7 = new JLabel();
			notebook7.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook7;
	}
	private JLabel notebook8() {
		if (notebook8 == null) {
			notebook8 = new JLabel();
			notebook8.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook8;
	}
	private JLabel notebook9() {
		if (notebook9 == null) {
			notebook9 = new JLabel();
			notebook9.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook9;
	}
	private JLabel notebook10() {
		if (notebook10 == null) {
			notebook10 = new JLabel();
			notebook10.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
		}
		return notebook10;
	}
	
	private JTextField bankruptedTextField() {
		if (bankruptedTextField == null) {
			bankruptedTextField = new JTextField();
			bankruptedTextField.setEditable(false);
			bankruptedTextField.setFont(new Font("Papyrus", Font.PLAIN, 17));
			bankruptedTextField.setOpaque(false);
			bankruptedTextField.setAutoscrolls(false);
			bankruptedTextField.setBorder(null);
			bankruptedTextField.setEnabled(false);
			bankruptedTextField.setDisabledTextColor(Color.black);
		}
		return bankruptedTextField;
	}
	
	private JButton declareBankruptcy() {
		if (declareBankruptcy == null) {
			declareBankruptcy = new JButton();
			declareBankruptcy.setIcon(new ImageIcon(getClass().getResource("/images/declareBankruptcy.png")));
			declareBankruptcy.setBorderPainted(false);
			declareBankruptcy.setOpaque(false);
			declareBankruptcy.setBorder(null);
			declareBankruptcy.setContentAreaFilled(false);
			declareBankruptcy.setEnabled(false);
			declareBankruptcy.setRolloverIcon(new ImageIcon(getClass().getResource("/images/declareBankruptcy_p.png")));
			declareBankruptcy.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			declareBankruptcy.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					declareBankruptcyActionActionPerformed(event);
				}
			});
		}
		return declareBankruptcy;
	}
	private JButton reviewAssets() {
		if (reviewAssets == null) {
			reviewAssets = new JButton();
			reviewAssets.setIcon(new ImageIcon(getClass().getResource("/images/reviewAssets.png")));
			reviewAssets.setBorderPainted(false);
			reviewAssets.setOpaque(false);
			reviewAssets.setBorder(null);
			reviewAssets.setContentAreaFilled(false);
			reviewAssets.setEnabled(false);
			reviewAssets.setRolloverIcon(new ImageIcon(getClass().getResource("/images/reviewAssets_p.png")));
			reviewAssets.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			reviewAssets.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					reviewAssetsActionActionPerformed(event);
				}
			});
		}
		return reviewAssets;
	}
	private JLabel frame() {
		if (frame == null) {
			frame = new JLabel();
			frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		}
		return frame;
	}
	private JLabel bankruptcyFrame() {
		if (bankruptcyFrame == null) {
			bankruptcyFrame = new JLabel();
			bankruptcyFrame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame_b.png")));
		}
		return bankruptcyFrame;
	}
	private JButton chooseTradee1() {
		if (chooseTradee1 == null) {
			chooseTradee1 = new JButton();
			chooseTradee1.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee1.setBorderPainted(false);
			chooseTradee1.setOpaque(false);
			chooseTradee1.setEnabled(false);
			chooseTradee1.setBorder(null);
			chooseTradee1.setContentAreaFilled(false);
			chooseTradee1.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee1.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee1ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee1;
	}
	private JButton chooseTradee2() {
		if (chooseTradee2 == null) {
			chooseTradee2 = new JButton();
			chooseTradee2.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee2.setBorderPainted(false);
			chooseTradee2.setOpaque(false);
			chooseTradee2.setEnabled(false);
			chooseTradee2.setBorder(null);
			chooseTradee2.setContentAreaFilled(false);
			chooseTradee2.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee2.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee2ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee2;
	}
	private JButton chooseTradee3() {
		if (chooseTradee3 == null) {
			chooseTradee3 = new JButton();
			chooseTradee3.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee3.setBorderPainted(false);
			chooseTradee3.setOpaque(false);
			chooseTradee3.setEnabled(false);
			chooseTradee3.setBorder(null);
			chooseTradee3.setContentAreaFilled(false);
			chooseTradee3.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee3.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee3.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee3ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee3;
	}
	private JButton chooseTradee4() {
		if (chooseTradee4 == null) {
			chooseTradee4 = new JButton();
			chooseTradee4.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee4.setBorderPainted(false);
			chooseTradee4.setOpaque(false);
			chooseTradee4.setEnabled(false);
			chooseTradee4.setBorder(null);
			chooseTradee4.setContentAreaFilled(false);
			chooseTradee4.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee4.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee4.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee4ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee4;
	}
	private JButton chooseTradee5() {
		if (chooseTradee5 == null) {
			chooseTradee5 = new JButton();
			chooseTradee5.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee5.setBorderPainted(false);
			chooseTradee5.setOpaque(false);
			chooseTradee5.setEnabled(false);
			chooseTradee5.setBorder(null);
			chooseTradee5.setContentAreaFilled(false);
			chooseTradee5.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee5.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee5.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee5ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee5;
	}
	private JButton chooseTradee6() {
		if (chooseTradee6 == null) {
			chooseTradee6 = new JButton();
			chooseTradee6.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee6.setBorderPainted(false);
			chooseTradee6.setOpaque(false);
			chooseTradee6.setEnabled(false);
			chooseTradee6.setBorder(null);
			chooseTradee6.setContentAreaFilled(false);
			chooseTradee6.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee6.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee6.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee6ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee6;
	}
	private JButton chooseTradee7() {
		if (chooseTradee7 == null) {
			chooseTradee7 = new JButton();
			chooseTradee7.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee7.setBorderPainted(false);
			chooseTradee7.setOpaque(false);
			chooseTradee7.setEnabled(false);
			chooseTradee7.setBorder(null);
			chooseTradee7.setContentAreaFilled(false);
			chooseTradee7.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee7.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee7.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee7ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee7;
	}
	private JButton chooseTradee8() {
		if (chooseTradee8 == null) {
			chooseTradee8 = new JButton();
			chooseTradee8.setIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee8.setBorderPainted(false);
			chooseTradee8.setOpaque(false);
			chooseTradee8.setEnabled(false);
			chooseTradee8.setBorder(null);
			chooseTradee8.setContentAreaFilled(false);
			chooseTradee8.setRolloverIcon(new ImageIcon(getClass().getResource("/images/tradee.png")));
			chooseTradee8.setDisabledIcon(new ImageIcon(getClass().getResource("/images/tradeeEmpty.png")));
			chooseTradee8.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					chooseTradee8ActionActionPerformed(event);
				}
			});
		}
		return chooseTradee8;
	}
	private JButton cell0() {
		if (cell0 == null) {
			cell0 = new JButton();
			cell0.setIcon(new ImageIcon(getClass().getResource("/images/corner.png")));
			cell0.setBorderPainted(false);
			cell0.setOpaque(false);
			cell0.setBorder(null);
			cell0.setContentAreaFilled(false);
			cell0.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed0ActionActionPerformed(event);
				}
			});
		}
		return cell0;
	}
	private JButton cell10() {
		if (cell10 == null) {
			cell10 = new JButton();
			cell10.setIcon(new ImageIcon(getClass().getResource("/images/corner.png")));
			cell10.setBorderPainted(false);
			cell10.setOpaque(false);
			cell10.setBorder(null);
			cell10.setContentAreaFilled(false);
			cell10.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed10ActionActionPerformed(event);
				}
			});
		}
		return cell10;
	}
	private JButton cell20() {
		if (cell20 == null) {
			cell20 = new JButton();
			cell20.setIcon(new ImageIcon(getClass().getResource("/images/corner.png")));
			cell20.setBorderPainted(false);
			cell20.setOpaque(false);
			cell20.setBorder(null);
			cell20.setContentAreaFilled(false);
			cell20.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed20ActionActionPerformed(event);
				}
			});
		}
		return cell20;
	}
	private JButton cell30() {
		if (cell30 == null) {
			cell30 = new JButton();
			cell30.setIcon(new ImageIcon(getClass().getResource("/images/corner.png")));
			cell30.setBorderPainted(false);
			cell30.setOpaque(false);
			cell30.setBorder(null);
			cell30.setContentAreaFilled(false);
			cell30.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed30ActionActionPerformed(event);
				}
			});
		}
		return cell30;
	}	

	private JButton cell1() {
		if (cell1 == null) {
			cell1 = new JButton();
			cell1.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell1.setBorderPainted(false);
			cell1.setOpaque(false);
			cell1.setBorder(null);
			cell1.setContentAreaFilled(false);
			cell1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed1ActionActionPerformed(event);
				}
			});
		}
		return cell1;
	}
	
	private JButton cell2() {
		if (cell2 == null) {
			cell2 = new JButton();
			cell2.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell2.setBorderPainted(false);
			cell2.setOpaque(false);
			cell2.setBorder(null);
			cell2.setContentAreaFilled(false);
			cell2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed2ActionActionPerformed(event);
				}
			});
		}
		return cell2;
	}
	
	private JButton cell3() {
		if (cell3 == null) {
			cell3 = new JButton();
			cell3.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell3.setBorderPainted(false);
			cell3.setOpaque(false);
			cell3.setBorder(null);
			cell3.setContentAreaFilled(false);
			cell3.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed3ActionActionPerformed(event);
				}
			});
		}
		return cell3;
	}
	
	private JButton cell4() {
		if (cell4 == null) {
			cell4 = new JButton();
			cell4.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell4.setBorderPainted(false);
			cell4.setOpaque(false);
			cell4.setBorder(null);
			cell4.setContentAreaFilled(false);
			cell4.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed4ActionActionPerformed(event);
				}
			});
		}
		return cell4;
	}
	
	private JButton cell5() {
		if (cell5 == null) {
			cell5 = new JButton();
			cell5.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell5.setBorderPainted(false);
			cell5.setOpaque(false);
			cell5.setBorder(null);
			cell5.setContentAreaFilled(false);
			cell5.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed5ActionActionPerformed(event);
				}
			});
		}
		return cell5;
	}
	
	private JButton cell6() {
		if (cell6 == null) {
			cell6 = new JButton();
			cell6.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell6.setBorderPainted(false);
			cell6.setOpaque(false);
			cell6.setBorder(null);
			cell6.setContentAreaFilled(false);
			cell6.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed6ActionActionPerformed(event);
				}
			});
		}
		return cell6;
	}
	
	private JButton cell7() {
		if (cell7 == null) {
			cell7 = new JButton();
			cell7.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell7.setBorderPainted(false);
			cell7.setOpaque(false);
			cell7.setBorder(null);
			cell7.setContentAreaFilled(false);
			cell7.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed7ActionActionPerformed(event);
				}
			});
		}
		return cell7;
	}
	
	private JButton cell8() {
		if (cell8 == null) {
			cell8 = new JButton();
			cell8.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell8.setBorderPainted(false);
			cell8.setOpaque(false);
			cell8.setBorder(null);
			cell8.setContentAreaFilled(false);
			cell8.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed8ActionActionPerformed(event);
				}
			});
		}
		return cell8;
	}
	
	private JButton cell9() {
		if (cell9 == null) {
			cell9 = new JButton();
			cell9.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell9.setBorderPainted(false);
			cell9.setOpaque(false);
			cell9.setBorder(null);
			cell9.setContentAreaFilled(false);
			cell9.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed9ActionActionPerformed(event);
				}
			});
		}
		return cell9;
	}
	
	private JButton cell21() {
		if (cell21 == null) {
			cell21 = new JButton();
			cell21.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell21.setBorderPainted(false);
			cell21.setOpaque(false);
			cell21.setBorder(null);
			cell21.setContentAreaFilled(false);
			cell21.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed21ActionActionPerformed(event);
				}
			});
		}
		return cell21;
	}
	
	private JButton cell22() {
		if (cell22 == null) {
			cell22 = new JButton();
			cell22.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell22.setBorderPainted(false);
			cell22.setOpaque(false);
			cell22.setBorder(null);
			cell22.setContentAreaFilled(false);
			cell22.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed22ActionActionPerformed(event);
				}
			});
		}
		return cell22;
	}
	
	private JButton cell23() {
		if (cell23 == null) {
			cell23 = new JButton();
			cell23.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell23.setBorderPainted(false);
			cell23.setOpaque(false);
			cell23.setBorder(null);
			cell23.setContentAreaFilled(false);
			cell23.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed23ActionActionPerformed(event);
				}
			});
		}
		return cell23;
	}
	
	private JButton cell24() {
		if (cell24 == null) {
			cell24 = new JButton();
			cell24.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell24.setBorderPainted(false);
			cell24.setOpaque(false);
			cell24.setBorder(null);
			cell24.setContentAreaFilled(false);
			cell24.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed24ActionActionPerformed(event);
				}
			});
		}
		return cell24;
	}
	
	private JButton cell25() {
		if (cell25 == null) {
			cell25 = new JButton();
			cell25.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell25.setBorderPainted(false);
			cell25.setOpaque(false);
			cell25.setBorder(null);
			cell25.setContentAreaFilled(false);
			cell25.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed25ActionActionPerformed(event);
				}
			});
		}
		return cell25;
	}
	
	private JButton cell26() {
		if (cell26 == null) {
			cell26 = new JButton();
			cell26.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell26.setBorderPainted(false);
			cell26.setOpaque(false);
			cell26.setBorder(null);
			cell26.setContentAreaFilled(false);
			cell26.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed26ActionActionPerformed(event);
				}
			});
		}
		return cell26;
	}
	
	private JButton cell27() {
		if (cell27 == null) {
			cell27 = new JButton();
			cell27.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell27.setBorderPainted(false);
			cell27.setOpaque(false);
			cell27.setBorder(null);
			cell27.setContentAreaFilled(false);
			cell27.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed27ActionActionPerformed(event);
				}
			});
		}
		return cell27;
	}
	
	private JButton cell28() {
		if (cell28 == null) {
			cell28 = new JButton();
			cell28.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell28.setBorderPainted(false);
			cell28.setOpaque(false);
			cell28.setBorder(null);
			cell28.setContentAreaFilled(false);
			cell28.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed28ActionActionPerformed(event);
				}
			});
		}
		return cell28;
	}
	
	private JButton cell29() {
		if (cell29 == null) {
			cell29 = new JButton();
			cell29.setIcon(new ImageIcon(getClass().getResource("/images/HU.png")));
			cell29.setBorderPainted(false);
			cell29.setOpaque(false);
			cell29.setBorder(null);
			cell29.setContentAreaFilled(false);
			cell29.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed29ActionActionPerformed(event);
				}
			});
		}
		return cell29;
	}

	private JButton cell11() {
		if (cell11 == null) {
			cell11 = new JButton();
			cell11.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell11.setBorderPainted(false);
			cell11.setOpaque(false);
			cell11.setBorder(null);
			cell11.setContentAreaFilled(false);
			cell11.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed11ActionActionPerformed(event);
				}
			});
		}
		return cell11;
	}
	
	private JButton cell12() {
		if (cell12 == null) {
			cell12 = new JButton();
			cell12.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell12.setBorderPainted(false);
			cell12.setOpaque(false);
			cell12.setBorder(null);
			cell12.setContentAreaFilled(false);
			cell12.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed12ActionActionPerformed(event);
				}
			});
		}
		return cell12;
	}
	
	private JButton cell13() {
		if (cell13 == null) {
			cell13 = new JButton();
			cell13.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell13.setBorderPainted(false);
			cell13.setOpaque(false);
			cell13.setBorder(null);
			cell13.setContentAreaFilled(false);
			cell13.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed13ActionActionPerformed(event);
				}
			});
		}
		return cell13;
	}
	
	private JButton cell14() {
		if (cell14 == null) {
			cell14 = new JButton();
			cell14.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell14.setBorderPainted(false);
			cell14.setOpaque(false);
			cell14.setBorder(null);
			cell14.setContentAreaFilled(false);
			cell14.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed14ActionActionPerformed(event);
				}
			});
		}
		return cell14;
	}
	
	private JButton cell15() {
		if (cell15 == null) {
			cell15 = new JButton();
			cell15.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell15.setBorderPainted(false);
			cell15.setOpaque(false);
			cell15.setBorder(null);
			cell15.setContentAreaFilled(false);
			cell15.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed15ActionActionPerformed(event);
				}
			});
		}
		return cell15;
	}
	
	private JButton cell16() {
		if (cell16 == null) {
			cell16 = new JButton();
			cell16.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell16.setBorderPainted(false);
			cell16.setOpaque(false);
			cell16.setBorder(null);
			cell16.setContentAreaFilled(false);
			cell16.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed16ActionActionPerformed(event);
				}
			});
		}
		return cell16;
	}
	
	private JButton cell17() {
		if (cell17 == null) {
			cell17 = new JButton();
			cell17.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell17.setBorderPainted(false);
			cell17.setOpaque(false);
			cell17.setBorder(null);
			cell17.setContentAreaFilled(false);
			cell17.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed17ActionActionPerformed(event);
				}
			});
		}
		return cell17;
	}
	
	private JButton cell18() {
		if (cell18 == null) {
			cell18 = new JButton();
			cell18.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell18.setBorderPainted(false);
			cell18.setOpaque(false);
			cell18.setBorder(null);
			cell18.setContentAreaFilled(false);
			cell18.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed18ActionActionPerformed(event);
				}
			});
		}
		return cell18;
	}
	
	private JButton cell19() {
		if (cell19 == null) {
			cell19 = new JButton();
			cell19.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell19.setBorderPainted(false);
			cell19.setOpaque(false);
			cell19.setBorder(null);
			cell19.setContentAreaFilled(false);
			cell19.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed19ActionActionPerformed(event);
				}
			});
		}
		return cell19;
	}
	
	private JButton cell31() {
		if (cell31 == null) {
			cell31 = new JButton();
			cell31.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell31.setBorderPainted(false);
			cell31.setOpaque(false);
			cell31.setBorder(null);
			cell31.setContentAreaFilled(false);
			cell31.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed31ActionActionPerformed(event);
				}
			});
		}
		return cell31;
	}
	
	private JButton cell32() {
		if (cell32 == null) {
			cell32 = new JButton();
			cell32.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell32.setBorderPainted(false);
			cell32.setOpaque(false);
			cell32.setBorder(null);
			cell32.setContentAreaFilled(false);
			cell32.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed32ActionActionPerformed(event);
				}
			});
		}
		return cell32;
	}
	
	private JButton cell33() {
		if (cell33 == null) {
			cell33 = new JButton();
			cell33.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell33.setBorderPainted(false);
			cell33.setOpaque(false);
			cell33.setBorder(null);
			cell33.setContentAreaFilled(false);
			cell33.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed33ActionActionPerformed(event);
				}
			});
		}
		return cell33;
	}
	
	private JButton cell34() {
		if (cell34 == null) {
			cell34 = new JButton();
			cell34.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell34.setBorderPainted(false);
			cell34.setOpaque(false);
			cell34.setBorder(null);
			cell34.setContentAreaFilled(false);
			cell34.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed34ActionActionPerformed(event);
				}
			});
		}
		return cell34;
	}
	
	private JButton cell35() {
		if (cell35 == null) {
			cell35 = new JButton();
			cell35.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell35.setBorderPainted(false);
			cell35.setOpaque(false);
			cell35.setBorder(null);
			cell35.setContentAreaFilled(false);
			cell35.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed35ActionActionPerformed(event);
				}
			});
		}
		return cell35;
	}
	
	private JButton cell36() {
		if (cell36 == null) {
			cell36 = new JButton();
			cell36.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell36.setBorderPainted(false);
			cell36.setOpaque(false);
			cell36.setBorder(null);
			cell36.setContentAreaFilled(false);
			cell36.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed36ActionActionPerformed(event);
				}
			});
		}
		return cell36;
	}
	
	private JButton cell37() {
		if (cell37 == null) {
			cell37 = new JButton();
			cell37.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell37.setBorderPainted(false);
			cell37.setOpaque(false);
			cell37.setBorder(null);
			cell37.setContentAreaFilled(false);
			cell37.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed37ActionActionPerformed(event);
				}
			});
		}
		return cell37;
	}
	
	private JButton cell38() {
		if (cell38 == null) {
			cell38 = new JButton();
			cell38.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell38.setBorderPainted(false);
			cell38.setOpaque(false);
			cell38.setBorder(null);
			cell38.setContentAreaFilled(false);
			cell38.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed38ActionActionPerformed(event);
				}
			});
		}
		return cell38;
	}
	
	private JButton cell39() {
		if (cell39 == null) {
			cell39 = new JButton();
			cell39.setIcon(new ImageIcon(getClass().getResource("/images/VU.png")));
			cell39.setBorderPainted(false);
			cell39.setOpaque(false);
			cell39.setBorder(null);
			cell39.setContentAreaFilled(false);
			cell39.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed39ActionActionPerformed(event);
				}
			});
		}
		return cell39;
	}
	
	
	
	private JButton showStats() {
		if (showStats == null) {
			showStats = new JButton();
			showStats.setIcon(new ImageIcon(getClass().getResource("/images/showMoney.png")));
			showStats.setBorderPainted(false);
			showStats.setOpaque(false);
			showStats.setBorder(null);
			showStats.setContentAreaFilled(false);
			showStats.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					showStatsActionActionPerformed(event);
				}
			});
		}
		return showStats;
	}
	
	private JLabel playerMoneyGlass() {
		if (playerMoneyGlass == null) {
			playerMoneyGlass = new JLabel();
			playerMoneyGlass.setIcon(new ImageIcon(getClass().getResource("/images/emptyGlass.png")));
		}
		return playerMoneyGlass;
	}
	
	private JTextField player1Money() {
		if (player1Money == null) {
			player1Money = new JTextField();
			player1Money.setEditable(false);
			player1Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player1Money.setOpaque(false);
			player1Money.setAutoscrolls(false);
			player1Money.setBorder(null);
			player1Money.setText("");
			player1Money.setEnabled(false);
			player1Money.setDisabledTextColor(Color.white);
		}
		return player1Money;
	}
	
	private JTextField player2Money() {
		if (player2Money == null) {
			player2Money = new JTextField();
			player2Money.setEditable(false);
			player2Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player2Money.setOpaque(false);
			player2Money.setAutoscrolls(false);
			player2Money.setBorder(null);
			player2Money.setText("");
			player2Money.setEnabled(false);
			player2Money.setDisabledTextColor(Color.white);
		}
		return player2Money;
	}
	
	private JTextField player3Money() {
		if (player3Money == null) {
			player3Money = new JTextField();
			player3Money.setEditable(false);
			player3Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player3Money.setOpaque(false);
			player3Money.setAutoscrolls(false);
			player3Money.setBorder(null);
			player3Money.setText("");
			player3Money.setEnabled(false);
			player3Money.setDisabledTextColor(Color.white);
		}
		return player3Money;
	}
	
	private JTextField player4Money() {
		if (player4Money == null) {
			player4Money = new JTextField();
			player4Money.setEditable(false);
			player4Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player4Money.setOpaque(false);
			player4Money.setAutoscrolls(false);
			player4Money.setBorder(null);
			player4Money.setText("");
			player4Money.setEnabled(false);
			player4Money.setDisabledTextColor(Color.white);
		}
		return player4Money;
	}
	
	private JTextField player5Money() {
		if (player5Money == null) {
			player5Money = new JTextField();
			player5Money.setEditable(false);
			player5Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player5Money.setOpaque(false);
			player5Money.setAutoscrolls(false);
			player5Money.setBorder(null);
			player5Money.setText("");
			player5Money.setEnabled(false);
			player5Money.setDisabledTextColor(Color.white);
		}
		return player5Money;
	}
	
	private JTextField player6Money() {
		if (player6Money == null) {
			player6Money = new JTextField();
			player6Money.setEditable(false);
			player6Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player6Money.setOpaque(false);
			player6Money.setAutoscrolls(false);
			player6Money.setBorder(null);
			player6Money.setText("");
			player6Money.setEnabled(false);
			player6Money.setDisabledTextColor(Color.white);
		}
		return player6Money;
	}
	
	private JTextField player7Money() {
		if (player7Money == null) {
			player7Money = new JTextField();
			player7Money.setEditable(false);
			player7Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player7Money.setOpaque(false);
			player7Money.setAutoscrolls(false);
			player7Money.setBorder(null);
			player7Money.setText("");
			player7Money.setEnabled(false);
			player7Money.setDisabledTextColor(Color.white);
		}
		return player7Money;
	}
	
	private JTextField player8Money() {
		if (player8Money == null) {
			player8Money = new JTextField();
			player8Money.setEditable(false);
			player8Money.setFont(new Font("Agency FB", Font.PLAIN, 13));
			player8Money.setOpaque(false);
			player8Money.setAutoscrolls(false);
			player8Money.setBorder(null);
			player8Money.setText("");
			player8Money.setEnabled(false);
			player8Money.setDisabledTextColor(Color.white);
		}
		return player8Money;
	}

	private JButton buildButton() {
		if (buildButton == null) {
			buildButton = new JButton();
			buildButton.setIcon(new ImageIcon(getClass().getResource("/images/build.png")));
			buildButton.setBorderPainted(false);
			buildButton.setOpaque(false);
			buildButton.setBorder(null);
			buildButton.setEnabled(false);
			buildButton.setContentAreaFilled(false);
			buildButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/build_p.png")));
			buildButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/build_d.png")));
			buildButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					buildButtonActionActionPerformed(event);
				}
			});
		}
		return buildButton;
	}
	
	private JButton sellButton() {
		if (sellButton == null) {
			sellButton = new JButton();
			sellButton.setIcon(new ImageIcon(getClass().getResource("/images/sell.png")));
			sellButton.setBorderPainted(false);
			sellButton.setOpaque(false);
			sellButton.setBorder(null);
			sellButton.setEnabled(false);
			sellButton.setContentAreaFilled(false);
			sellButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/sell_p.png")));
			sellButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/sell_d.png")));
			sellButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					sellButtonActionActionPerformed(event);
				}
			});
		}
		return sellButton;
	}
	private JButton tradeButton() {
		if (tradeButton == null) {
			tradeButton = new JButton();
			tradeButton.setIcon(new ImageIcon(getClass().getResource("/images/trade.png")));
			tradeButton.setBorderPainted(false);
			tradeButton.setOpaque(false);
			tradeButton.setBorder(null);
			tradeButton.setEnabled(false);
			tradeButton.setContentAreaFilled(false);
			tradeButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/trade_p.png")));
			tradeButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/trade_d.png")));
			tradeButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					tradeButtonActionActionPerformed(event);
					showStatsActionActionPerformed(event);
				}
			});
		}
		return tradeButton;
	}
	private JButton mortgageButton() {
		if (mortgageButton == null) {
			mortgageButton = new JButton();
			mortgageButton.setIcon(new ImageIcon(getClass().getResource("/images/mortgage.png")));
			mortgageButton.setBorderPainted(false);
			mortgageButton.setOpaque(false);
			mortgageButton.setBorder(null);
			mortgageButton.setEnabled(false);
			mortgageButton.setContentAreaFilled(false);
			mortgageButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/mortgage_p.png")));
			mortgageButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/mortgage_d.png")));
			mortgageButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					mortgageButtonActionActionPerformed(event);
				}
			});
		}
		return mortgageButton;
	}
	private JButton redeemButton() {
		if (redeemButton == null) {
			redeemButton = new JButton();
			redeemButton.setIcon(new ImageIcon(getClass().getResource("/images/redeem.png")));
			redeemButton.setBorderPainted(false);
			redeemButton.setOpaque(false);
			redeemButton.setBorder(null);
			redeemButton.setEnabled(false);
			redeemButton.setContentAreaFilled(false);
			redeemButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/redeem_p.png")));
			redeemButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/redeem_d.png")));
			redeemButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					redeemButtonActionActionPerformed(event);
				}
			});
		}
		return redeemButton;
	}
	private JLabel tile1House() {
		if (tile1House == null) {
			tile1House = new JLabel();
			tile1House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile1House;
	}
	private JLabel tile3House() {
		if (tile3House == null) {
			tile3House = new JLabel();
			tile3House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile3House;
	}
	private JLabel tile6House() {
		if (tile6House == null) {
			tile6House = new JLabel();
			tile6House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile6House;
	}
	private JLabel tile8House() {
		if (tile8House == null) {
			tile8House = new JLabel();
			tile8House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile8House;
	}
	private JLabel tile9House() {
		if (tile9House == null) {
			tile9House = new JLabel();
			tile9House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile9House;
	}
	private JLabel tile11House() {
		if (tile11House == null) {
			tile11House = new JLabel();
			tile11House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile11House;
	}
	private JLabel tile13House() {
		if (tile13House == null) {
			tile13House = new JLabel();
			tile13House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile13House;
	}
	private JLabel tile14House() {
		if (tile14House == null) {
			tile14House = new JLabel();
			tile14House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile14House;
	}
	private JLabel tile16House() {
		if (tile16House == null) {
			tile16House = new JLabel();
			tile16House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile16House;
	}
	private JLabel tile18House() {
		if (tile18House == null) {
			tile18House = new JLabel();
			tile18House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile18House;
	}
	private JLabel tile19House() {
		if (tile19House == null) {
			tile19House = new JLabel();
			tile19House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile19House;
	}
	private JLabel tile21House() {
		if (tile21House == null) {
			tile21House = new JLabel();
			tile21House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile21House;
	}
	private JLabel tile23House() {
		if (tile23House == null) {
			tile23House = new JLabel();
			tile23House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile23House;
	}
	private JLabel tile24House() {
		if (tile24House == null) {
			tile24House = new JLabel();
			tile24House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile24House;
	}
	private JLabel tile26House() {
		if (tile26House == null) {
			tile26House = new JLabel();
			tile26House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile26House;
	}
	private JLabel tile27House() {
		if (tile27House == null) {
			tile27House = new JLabel();
			tile27House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile27House;
	}
	private JLabel tile29House() {
		if (tile29House == null) {
			tile29House = new JLabel();
			tile29House.setIcon(new ImageIcon(getClass().getResource("/images/HHouse0.png")));
		}
		return tile29House;
	}
	private JLabel tile31House() {
		if (tile31House == null) {
			tile31House = new JLabel();
			tile31House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile31House;
	}
	private JLabel tile32House() {
		if (tile32House == null) {
			tile32House = new JLabel();
			tile32House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile32House;
	}
	private JLabel tile34House() {
		if (tile34House == null) {
			tile34House = new JLabel();
			tile34House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile34House;
	}
	private JLabel tile37House() {
		if (tile37House == null) {
			tile37House = new JLabel();
			tile37House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile37House;
	}
	private JLabel tile39House() {
		if (tile39House == null) {
			tile39House = new JLabel();
			tile39House.setIcon(new ImageIcon(getClass().getResource("/images/VHouse0.png")));
		}
		return tile39House;
	}
	private JButton babyDeed1() {
		if (babyDeed1 == null) {
			babyDeed1 = new JButton();
			babyDeed1.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed1.setBorderPainted(false);
			babyDeed1.setOpaque(false);
			babyDeed1.setBorder(null);
			babyDeed1.setContentAreaFilled(false);
			babyDeed1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed1ActionActionPerformed(event);
				}
			});
		}
		return babyDeed1;
	}
	private JButton babyDeed3() {
		if (babyDeed3 == null) {
			babyDeed3 = new JButton();
			babyDeed3.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed3.setBorderPainted(false);
			babyDeed3.setOpaque(false);
			babyDeed3.setBorder(null);
			babyDeed3.setContentAreaFilled(false);
			babyDeed3.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed3ActionActionPerformed(event);
				}
			});
		}
		return babyDeed3;
	}
	private JButton babyDeed5() {
		if (babyDeed5 == null) {
			babyDeed5 = new JButton();
			babyDeed5.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed5.setBorderPainted(false);
			babyDeed5.setOpaque(false);
			babyDeed5.setBorder(null);
			babyDeed5.setContentAreaFilled(false);
			babyDeed5.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed5ActionActionPerformed(event);
				}
			});
		}
		return babyDeed5;
	}
	private JButton babyDeed6() {
		if (babyDeed6 == null) {
			babyDeed6 = new JButton();
			babyDeed6.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed6.setBorderPainted(false);
			babyDeed6.setOpaque(false);
			babyDeed6.setBorder(null);
			babyDeed6.setContentAreaFilled(false);
			babyDeed6.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed6ActionActionPerformed(event);
				}
			});
		}
		return babyDeed6;
	}
	private JButton babyDeed8() {
		if (babyDeed8 == null) {
			babyDeed8 = new JButton();
			babyDeed8.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed8.setBorderPainted(false);
			babyDeed8.setOpaque(false);
			babyDeed8.setBorder(null);
			babyDeed8.setContentAreaFilled(false);
			babyDeed8.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed8ActionActionPerformed(event);
				}
			});
		}
		return babyDeed8;
	}
	private JButton babyDeed9() {
		if (babyDeed9 == null) {
			babyDeed9 = new JButton();
			babyDeed9.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed9.setBorderPainted(false);
			babyDeed9.setOpaque(false);
			babyDeed9.setBorder(null);
			babyDeed9.setContentAreaFilled(false);
			babyDeed9.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed9ActionActionPerformed(event);
				}
			});
		}
		return babyDeed9;
	}
	private JButton babyDeed11() {
		if (babyDeed11 == null) {
			babyDeed11 = new JButton();
			babyDeed11.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed11.setBorderPainted(false);
			babyDeed11.setOpaque(false);
			babyDeed11.setBorder(null);
			babyDeed11.setContentAreaFilled(false);
			babyDeed11.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed11ActionActionPerformed(event);
				}
			});
		}
		return babyDeed11;
	}
	private JButton babyDeed12() {
		if (babyDeed12 == null) {
			babyDeed12 = new JButton();
			babyDeed12.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed12.setBorderPainted(false);
			babyDeed12.setOpaque(false);
			babyDeed12.setBorder(null);
			babyDeed12.setContentAreaFilled(false);
			babyDeed12.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed12ActionActionPerformed(event);
				}
			});
		}
		return babyDeed12;
	}
	private JButton babyDeed13() {
		if (babyDeed13 == null) {
			babyDeed13 = new JButton();
			babyDeed13.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed13.setBorderPainted(false);
			babyDeed13.setOpaque(false);
			babyDeed13.setBorder(null);
			babyDeed13.setContentAreaFilled(false);
			babyDeed13.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed13ActionActionPerformed(event);
				}
			});
		}
		return babyDeed13;
	}
	private JButton babyDeed14() {
		if (babyDeed14 == null) {
			babyDeed14 = new JButton();
			babyDeed14.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed14.setBorderPainted(false);
			babyDeed14.setOpaque(false);
			babyDeed14.setBorder(null);
			babyDeed14.setContentAreaFilled(false);
			babyDeed14.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed14ActionActionPerformed(event);
				}
			});
		}
		return babyDeed14;
	}
	private JButton babyDeed15() {
		if (babyDeed15 == null) {
			babyDeed15 = new JButton();
			babyDeed15.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed15.setBorderPainted(false);
			babyDeed15.setOpaque(false);
			babyDeed15.setBorder(null);
			babyDeed15.setContentAreaFilled(false);
			babyDeed15.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed15ActionActionPerformed(event);
				}
			});
		}
		return babyDeed15;
	}
	private JButton babyDeed16() {
		if (babyDeed16 == null) {
			babyDeed16 = new JButton();
			babyDeed16.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed16.setBorderPainted(false);
			babyDeed16.setOpaque(false);
			babyDeed16.setBorder(null);
			babyDeed16.setContentAreaFilled(false);
			babyDeed16.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed16ActionActionPerformed(event);
				}
			});
		}
		return babyDeed16;
	}
	private JButton babyDeed18() {
		if (babyDeed18 == null) {
			babyDeed18 = new JButton();
			babyDeed18.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed18.setBorderPainted(false);
			babyDeed18.setOpaque(false);
			babyDeed18.setBorder(null);
			babyDeed18.setContentAreaFilled(false);
			babyDeed18.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed18ActionActionPerformed(event);
				}
			});
		}
		return babyDeed18;
	}
	private JButton babyDeed19() {
		if (babyDeed19 == null) {
			babyDeed19 = new JButton();
			babyDeed19.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed19.setBorderPainted(false);
			babyDeed19.setOpaque(false);
			babyDeed19.setBorder(null);
			babyDeed19.setContentAreaFilled(false);
			babyDeed19.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed19ActionActionPerformed(event);
				}
			});
		}
		return babyDeed19;
	}
	private JButton babyDeed21() {
		if (babyDeed21 == null) {
			babyDeed21 = new JButton();
			babyDeed21.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed21.setBorderPainted(false);
			babyDeed21.setOpaque(false);
			babyDeed21.setBorder(null);
			babyDeed21.setContentAreaFilled(false);
			babyDeed21.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed21ActionActionPerformed(event);
				}
			});
		}
		return babyDeed21;
	}
	private JButton babyDeed23() {
		if (babyDeed23 == null) {
			babyDeed23 = new JButton();
			babyDeed23.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed23.setBorderPainted(false);
			babyDeed23.setOpaque(false);
			babyDeed23.setBorder(null);
			babyDeed23.setContentAreaFilled(false);
			babyDeed23.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed23ActionActionPerformed(event);
				}
			});
		}
		return babyDeed23;
	}
	private JButton babyDeed24() {
		if (babyDeed24 == null) {
			babyDeed24 = new JButton();
			babyDeed24.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed24.setBorderPainted(false);
			babyDeed24.setOpaque(false);
			babyDeed24.setBorder(null);
			babyDeed24.setContentAreaFilled(false);
			babyDeed24.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed24ActionActionPerformed(event);
				}
			});
		}
		return babyDeed24;
	}
	private JButton babyDeed25() {
		if (babyDeed25 == null) {
			babyDeed25 = new JButton();
			babyDeed25.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed25.setBorderPainted(false);
			babyDeed25.setOpaque(false);
			babyDeed25.setBorder(null);
			babyDeed25.setContentAreaFilled(false);
			babyDeed25.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed25ActionActionPerformed(event);
				}
			});
		}
		return babyDeed25;
	}
	private JButton babyDeed26() {
		if (babyDeed26 == null) {
			babyDeed26 = new JButton();
			babyDeed26.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed26.setBorderPainted(false);
			babyDeed26.setOpaque(false);
			babyDeed26.setBorder(null);
			babyDeed26.setContentAreaFilled(false);
			babyDeed26.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed26ActionActionPerformed(event);
				}
			});
		}
		return babyDeed26;
	}
	private JButton babyDeed27() {
		if (babyDeed27 == null) {
			babyDeed27 = new JButton();
			babyDeed27.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed27.setBorderPainted(false);
			babyDeed27.setOpaque(false);
			babyDeed27.setBorder(null);
			babyDeed27.setContentAreaFilled(false);
			babyDeed27.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed27ActionActionPerformed(event);
				}
			});
		}
		return babyDeed27;
	}
	private JButton babyDeed28() {
		if (babyDeed28 == null) {
			babyDeed28 = new JButton();
			babyDeed28.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed28.setBorderPainted(false);
			babyDeed28.setOpaque(false);
			babyDeed28.setBorder(null);
			babyDeed28.setContentAreaFilled(false);
			babyDeed28.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed28ActionActionPerformed(event);
				}
			});
		}
		return babyDeed28;
	}
	private JButton babyDeed29() {
		if (babyDeed29 == null) {
			babyDeed29 = new JButton();
			babyDeed29.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed29.setBorderPainted(false);
			babyDeed29.setOpaque(false);
			babyDeed29.setBorder(null);
			babyDeed29.setContentAreaFilled(false);
			babyDeed29.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed29ActionActionPerformed(event);
				}
			});
		}
		return babyDeed29;
	}
	private JButton babyDeed31() {
		if (babyDeed31 == null) {
			babyDeed31 = new JButton();
			babyDeed31.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed31.setBorderPainted(false);
			babyDeed31.setOpaque(false);
			babyDeed31.setBorder(null);
			babyDeed31.setContentAreaFilled(false);
			babyDeed31.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed31ActionActionPerformed(event);
				}
			});
		}
		return babyDeed31;
	}
	private JButton babyDeed32() {
		if (babyDeed32 == null) {
			babyDeed32 = new JButton();
			babyDeed32.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed32.setBorderPainted(false);
			babyDeed32.setOpaque(false);
			babyDeed32.setBorder(null);
			babyDeed32.setContentAreaFilled(false);
			babyDeed32.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed32ActionActionPerformed(event);
				}
			});
		}
		return babyDeed32;
	}
	private JButton babyDeed34() {
		if (babyDeed34 == null) {
			babyDeed34 = new JButton();
			babyDeed34.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed34.setBorderPainted(false);
			babyDeed34.setOpaque(false);
			babyDeed34.setBorder(null);
			babyDeed34.setContentAreaFilled(false);
			babyDeed34.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed34ActionActionPerformed(event);
				}
			});
		}
		return babyDeed34;
	}
	private JButton babyDeed35() {
		if (babyDeed35 == null) {
			babyDeed35 = new JButton();
			babyDeed35.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed35.setBorderPainted(false);
			babyDeed35.setOpaque(false);
			babyDeed35.setBorder(null);
			babyDeed35.setContentAreaFilled(false);
			babyDeed35.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed35ActionActionPerformed(event);
				}
			});
		}
		return babyDeed35;
	}
	private JButton babyDeed37() {
		if (babyDeed37 == null) {
			babyDeed37 = new JButton();
			babyDeed37.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed37.setBorderPainted(false);
			babyDeed37.setOpaque(false);
			babyDeed37.setBorder(null);
			babyDeed37.setContentAreaFilled(false);
			babyDeed37.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed37ActionActionPerformed(event);
				}
			});
		}
		return babyDeed37;
	}
	private JButton babyDeed39() {
		if (babyDeed39 == null) {
			babyDeed39 = new JButton();
			babyDeed39.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeed39.setBorderPainted(false);
			babyDeed39.setOpaque(false);
			babyDeed39.setBorder(null);
			babyDeed39.setContentAreaFilled(false);
			babyDeed39.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeed39ActionActionPerformed(event);
				}
			});
		}
		return babyDeed39;
	}
	private JButton babyDeedKey1() {
		if (babyDeedKey1 == null) {
			babyDeedKey1 = new JButton();
			babyDeedKey1.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeedKey1.setBorderPainted(false);
			babyDeedKey1.setOpaque(false);
			babyDeedKey1.setBorder(null);
			babyDeedKey1.setContentAreaFilled(false);
			babyDeedKey1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeedKey1ActionActionPerformed(event);
				}
			});
		}
		return babyDeedKey1;
	}
	private JButton babyDeedKey2() {
		if (babyDeedKey2 == null) {
			babyDeedKey2 = new JButton();
			babyDeedKey2.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
			babyDeedKey2.setBorderPainted(false);
			babyDeedKey2.setOpaque(false);
			babyDeedKey2.setBorder(null);
			babyDeedKey2.setContentAreaFilled(false);
			babyDeedKey2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					babyDeedKey2ActionActionPerformed(event);
				}
			});
		}
		return babyDeedKey2;
	}
	private JLabel tile1Owner() {
		if (tile1Owner == null) {
			tile1Owner = new JLabel();
			tile1Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile1Owner;
	}
	private JLabel tile3Owner() {
		if (tile3Owner == null) {
			tile3Owner = new JLabel();
			tile3Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile3Owner;
	}
	private JLabel tile5Owner() {
		if (tile5Owner == null) {
			tile5Owner = new JLabel();
			tile5Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile5Owner;
	}
	private JLabel tile6Owner() {
		if (tile6Owner == null) {
			tile6Owner = new JLabel();
			tile6Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile6Owner;
	}
	private JLabel tile8Owner() {
		if (tile8Owner == null) {
			tile8Owner = new JLabel();
			tile8Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile8Owner;
	}
	private JLabel tile9Owner() {
		if (tile9Owner == null) {
			tile9Owner = new JLabel();
			tile9Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile9Owner;
	}
	private JLabel tile11Owner() {
		if (tile11Owner == null) {
			tile11Owner = new JLabel();
			tile11Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile11Owner;
	}
	private JLabel tile12Owner() {
		if (tile12Owner == null) {
			tile12Owner = new JLabel();
			tile12Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile12Owner;
	}
	private JLabel tile13Owner() {
		if (tile13Owner == null) {
			tile13Owner = new JLabel();
			tile13Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile13Owner;
	}
	private JLabel tile14Owner() {
		if (tile14Owner == null) {
			tile14Owner = new JLabel();
			tile14Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile14Owner;
	}
	private JLabel tile15Owner() {
		if (tile15Owner == null) {
			tile15Owner = new JLabel();
			tile15Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile15Owner;
	}
	private JLabel tile16Owner() {
		if (tile16Owner == null) {
			tile16Owner = new JLabel();
			tile16Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile16Owner;
	}
	private JLabel tile18Owner() {
		if (tile18Owner == null) {
			tile18Owner = new JLabel();
			tile18Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile18Owner;
	}
	private JLabel tile19Owner() {
		if (tile19Owner == null) {
			tile19Owner = new JLabel();
			tile19Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile19Owner;
	}
	private JLabel tile21Owner() {
		if (tile21Owner == null) {
			tile21Owner = new JLabel();
			tile21Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile21Owner;
	}
	private JLabel tile23Owner() {
		if (tile23Owner == null) {
			tile23Owner = new JLabel();
			tile23Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile23Owner;
	}
	private JLabel tile24Owner() {
		if (tile24Owner == null) {
			tile24Owner = new JLabel();
			tile24Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile24Owner;
	}
	private JLabel tile25Owner() {
		if (tile25Owner == null) {
			tile25Owner = new JLabel();
			tile25Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile25Owner;
	}
	private JLabel tile26Owner() {
		if (tile26Owner == null) {
			tile26Owner = new JLabel();
			tile26Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile26Owner;
	}
	private JLabel tile27Owner() {
		if (tile27Owner == null) {
			tile27Owner = new JLabel();
			tile27Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile27Owner;
	}
	private JLabel tile28Owner() {
		if (tile28Owner == null) {
			tile28Owner = new JLabel();
			tile28Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile28Owner;
	}
	private JLabel tile29Owner() {
		if (tile29Owner == null) {
			tile29Owner = new JLabel();
			tile29Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		}
		return tile29Owner;
	}
	private JLabel tile31Owner() {
		if (tile31Owner == null) {
			tile31Owner = new JLabel();
			tile31Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile31Owner;
	}
	private JLabel tile32Owner() {
		if (tile32Owner == null) {
			tile32Owner = new JLabel();
			tile32Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile32Owner;
	}
	private JLabel tile34Owner() {
		if (tile34Owner == null) {
			tile34Owner = new JLabel();
			tile34Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile34Owner;
	}
	private JLabel tile35Owner() {
		if (tile35Owner == null) {
			tile35Owner = new JLabel();
			tile35Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile35Owner;
	}
	private JLabel tile37Owner() {
		if (tile37Owner == null) {
			tile37Owner = new JLabel();
			tile37Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile37Owner;
	}
	private JLabel tile39Owner() {
		if (tile39Owner == null) {
			tile39Owner = new JLabel();
			tile39Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		}
		return tile39Owner;
	}
	private JButton changeBackground1() {
		if (changeBackground1 == null) {
			changeBackground1 = new JButton();
			changeBackground1.setIcon(new ImageIcon(getClass().getResource("/images/bullet.png")));
			changeBackground1.setBorderPainted(false);
			changeBackground1.setOpaque(false);
			changeBackground1.setBorder(null);
			changeBackground1.setContentAreaFilled(false);
			changeBackground1.setRolloverIcon(new ImageIcon(getClass().getResource("/images/bullet_p.png")));
			changeBackground1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					changeBackground1ActionActionPerformed(event);
				}
			});
		}
		return changeBackground1;
	}

	private JButton changeBackground2() {
		if (changeBackground2 == null) {
			changeBackground2 = new JButton();
			changeBackground2.setIcon(new ImageIcon(getClass().getResource("/images/bullet.png")));
			changeBackground2.setBorderPainted(false);
			changeBackground2.setOpaque(false);
			changeBackground2.setBorder(null);
			changeBackground2.setContentAreaFilled(false);
			changeBackground2.setRolloverIcon(new ImageIcon(getClass().getResource("/images/bullet_p.png")));
			changeBackground2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					changeBackground2ActionActionPerformed(event);
				}
			});
		}
		return changeBackground2;
	}

	private JButton changeBackground3() {
		if (changeBackground3 == null) {
			changeBackground3 = new JButton();
			changeBackground3.setIcon(new ImageIcon(getClass().getResource("/images/bullet.png")));
			changeBackground3.setBorderPainted(false);
			changeBackground3.setOpaque(false);
			changeBackground3.setBorder(null);
			changeBackground3.setContentAreaFilled(false);
			changeBackground3.setRolloverIcon(new ImageIcon(getClass().getResource("/images/bullet_p.png")));
			changeBackground3.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					changeBackground3ActionActionPerformed(event);
				}
			});
		}
		return changeBackground3;
	}

	private JButton changeBackground4() {
		if (changeBackground4 == null) {
			changeBackground4 = new JButton();
			changeBackground4.setIcon(new ImageIcon(getClass().getResource("/images/bullet.png")));
			changeBackground4.setBorderPainted(false);
			changeBackground4.setOpaque(false);
			changeBackground4.setBorder(null);
			changeBackground4.setContentAreaFilled(false);
			changeBackground4.setRolloverIcon(new ImageIcon(getClass().getResource("/images/bullet_p.png")));
			changeBackground4.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					changeBackground4ActionActionPerformed(event);
				}
			});
		}
		return changeBackground4;
	}

	private JLabel currentToken() {
		if (currentToken == null) {
			currentToken = new JLabel();
			currentToken.setIcon(new ImageIcon(getClass().getResource("/images/tokenDefault_b.png")));
		}
		return currentToken;
	}

	private JLabel showTile() {
		if (showTile == null) {
			showTile = new JLabel();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return showTile;
	}
	
	private JButton acceptButton() {
		if (acceptButton == null) {
			acceptButton = new JButton();
			acceptButton.setIcon(new ImageIcon(getClass().getResource("/images/check.png")));
			acceptButton.setOpaque(false);
			acceptButton.setBorder(null);
			acceptButton.setEnabled(false);
			acceptButton.setContentAreaFilled(false);
			acceptButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/check_p.png")));
			acceptButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			acceptButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					acceptButtonActionActionPerformed(event);
				}
			});
		}
		return acceptButton;
	}
	
	private JButton acceptButton2() {
		if (acceptButton2 == null) {
			acceptButton2 = new JButton();
			acceptButton2.setIcon(new ImageIcon(getClass().getResource("/images/check.png")));
			acceptButton2.setOpaque(false);
			acceptButton2.setBorder(null);
			acceptButton2.setEnabled(false);
			acceptButton2.setContentAreaFilled(false);
			acceptButton2.setRolloverIcon(new ImageIcon(getClass().getResource("/images/check_p.png")));
			acceptButton2.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			acceptButton2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					acceptButton2ActionActionPerformed(event);
				}
			});
		}
		return acceptButton2;
	}
	
	private JButton auctionButton() {
		if (auctionButton == null) {
			auctionButton = new JButton();
			auctionButton.setIcon(new ImageIcon(getClass().getResource("/images/auction.png")));
			auctionButton.setOpaque(false);
			auctionButton.setBorder(null);
			auctionButton.setEnabled(false);
			auctionButton.setContentAreaFilled(false);
			auctionButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/auction_p.png")));
			auctionButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			auctionButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					auctionButtonActionActionPerformed(event);
					showStatsActionActionPerformed(event);
				}
			});
		}
		return auctionButton;
	}
	
	private JButton twoMillionTaxButton() {
		if (twoMillionTaxButton == null) {
			twoMillionTaxButton = new JButton();
			twoMillionTaxButton.setIcon(new ImageIcon(getClass().getResource("/images/incomeTax2m.png")));
			twoMillionTaxButton.setOpaque(false);
			twoMillionTaxButton.setBorder(null);
			twoMillionTaxButton.setContentAreaFilled(false);
			twoMillionTaxButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/incomeTax2m_p.png")));
			twoMillionTaxButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			twoMillionTaxButton.setEnabled(false);
			twoMillionTaxButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					twoMillionTaxButtonActionActionPerformed(event);
				}
			});
		}
		return twoMillionTaxButton;
	}

	private JButton tenPercentTaxButton() {
		if (tenPercentTaxButton == null) {
			tenPercentTaxButton = new JButton();
			tenPercentTaxButton.setIcon(new ImageIcon(getClass().getResource("/images/incomeTax10percent.png")));
			tenPercentTaxButton.setOpaque(false);
			tenPercentTaxButton.setBorder(null);
			tenPercentTaxButton.setContentAreaFilled(false);
			tenPercentTaxButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/incomeTax10percent_p.png")));
			tenPercentTaxButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			tenPercentTaxButton.setEnabled(false);
			tenPercentTaxButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					tenPercentTaxButtonActionActionPerformed(event);
				}
			});
		}
		return tenPercentTaxButton;
	}

	private JTextField property1TextField() {
		if (property1TextField == null) {
			property1TextField = new JTextField();
			property1TextField.setEditable(false);
			property1TextField.setFont(new Font("Agency FB", Font.PLAIN, 16));
			property1TextField.setOpaque(false);
			property1TextField.setAutoscrolls(false);
			property1TextField.setBorder(null);
			property1TextField.setText(null);
			property1TextField.setEnabled(false);
			property1TextField.setDisabledTextColor(Color.white);
		}
		return property1TextField;
	}
	
	private JTextField property2TextField() {
		if (property2TextField == null) {
			property2TextField = new JTextField();
			property2TextField.setEditable(false);
			property2TextField.setFont(new Font("Agency FB", Font.PLAIN, 16));
			property2TextField.setOpaque(false);
			property2TextField.setAutoscrolls(false);
			property2TextField.setBorder(null);
			property2TextField.setText(null);
			property2TextField.setEnabled(false);
			property2TextField.setDisabledTextColor(Color.white);
		}
		return property2TextField;
	}

	private JLabel chanceCardLabel() {
		if (chanceCardLabel == null) {
			chanceCardLabel = new JLabel();
			chanceCardLabel.setIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return chanceCardLabel;
	}
	
	private JLabel chestCardLabel() {
		if (chestCardLabel == null) {
			chestCardLabel = new JLabel();
			chestCardLabel.setIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return chestCardLabel;
	}

	private JButton keyButton() {
		if (keyButton == null) {
			keyButton = new JButton();
			keyButton.setIcon(new ImageIcon(getClass().getResource("/images/key.png")));
			keyButton.setBorderPainted(false);
			keyButton.setOpaque(false);
			keyButton.setBorder(null);
			keyButton.setContentAreaFilled(false);
			keyButton.setEnabled(false);
			keyButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/key_p.png")));
			keyButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			keyButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					keyButtonActionActionPerformed(event);
				}
			});
		}
		return keyButton;
	}

	private JButton postBail() {
		if (postBail == null) {
			postBail = new JButton();
			postBail.setIcon(new ImageIcon(getClass().getResource("/images/postBail.png")));
			postBail.setBorderPainted(false);
			postBail.setOpaque(false);
			postBail.setBorder(null);
			postBail.setContentAreaFilled(false);
			postBail.setEnabled(false);
			postBail.setRolloverIcon(new ImageIcon(getClass().getResource("/images/postBail_p.png")));
			postBail.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			postBail.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					postBailActionActionPerformed(event);
				}
			});
		}
		return postBail;
	}

	private JButton rollForDoubles() {
		if (rollForDoubles == null) {
			rollForDoubles = new JButton();
			rollForDoubles.setIcon(new ImageIcon(getClass().getResource("/images/rollForDoubles.png")));
			rollForDoubles.setBorderPainted(false);
			rollForDoubles.setOpaque(false);
			rollForDoubles.setBorder(null);
			rollForDoubles.setContentAreaFilled(false);
			rollForDoubles.setEnabled(false);
			rollForDoubles.setRolloverIcon(new ImageIcon(getClass().getResource("/images/rollForDoubles_p.png")));
			rollForDoubles.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			rollForDoubles.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					rollForDoublesActionActionPerformed(event);
				}
			});
		}
		return rollForDoubles;
	}

	private JButton doubleDiceButton() {
		if (doubleDiceButton == null) {
			doubleDiceButton = new JButton();
			doubleDiceButton.setIcon(new ImageIcon(getClass().getResource("/images/doubleDice.png")));
			doubleDiceButton.setOpaque(false);
			doubleDiceButton.setBorder(null);
			doubleDiceButton.setContentAreaFilled(false);
			doubleDiceButton.setEnabled(false);
			doubleDiceButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return doubleDiceButton;
	}
	
	private JButton chooseTradeeButton() {
		if (chooseTradeeButton == null) {
			chooseTradeeButton = new JButton();
			chooseTradeeButton.setIcon(new ImageIcon(getClass().getResource("/images/chooseTradee.png")));
			chooseTradeeButton.setOpaque(false);
			chooseTradeeButton.setBorder(null);
			chooseTradeeButton.setContentAreaFilled(false);
			chooseTradeeButton.setEnabled(false);
			chooseTradeeButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return chooseTradeeButton;
	}
	
	private JButton chooseHighestBidderButton() {
		if (chooseHighestBidderButton == null) {
			chooseHighestBidderButton = new JButton();
			chooseHighestBidderButton.setIcon(new ImageIcon(getClass().getResource("/images/chooseHighestBidder.png")));
			chooseHighestBidderButton.setOpaque(false);
			chooseHighestBidderButton.setBorder(null);
			chooseHighestBidderButton.setContentAreaFilled(false);
			chooseHighestBidderButton.setEnabled(false);
			chooseHighestBidderButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
		}
		return chooseHighestBidderButton;
	}

	private JTextField getPlayerMoneyTextField() {
		if (playerMoneyTextField == null) {
			playerMoneyTextField = new JTextField();
			playerMoneyTextField.setEditable(false);
			playerMoneyTextField.setFont(new Font("Agency FB", Font.PLAIN, 16));
			playerMoneyTextField.setOpaque(false);
			playerMoneyTextField.setAutoscrolls(false);
			playerMoneyTextField.setBorder(null);
			playerMoneyTextField.setText("$ 15000000");
			playerMoneyTextField.setEnabled(false);
			playerMoneyTextField.setDisabledTextColor(Color.white);
		}
		return playerMoneyTextField;
	}

	private JTextField getPlayerPositionTextField() {
		if (playerPositionTextField == null) {
			playerPositionTextField = new JTextField();
			playerPositionTextField.setEditable(false);
			playerPositionTextField.setFont(new Font("Agency FB", Font.PLAIN, 16));
			playerPositionTextField.setOpaque(false);
			playerPositionTextField.setAutoscrolls(false);
			playerPositionTextField.setBorder(null);
			playerPositionTextField.setEnabled(false);
			playerPositionTextField.setText("Position Unknown");
			playerPositionTextField.setDisabledTextColor(Color.white);
		}
		return playerPositionTextField;
	}

	private JButton endTurnButton() {
		if (endTurnButton == null) {
			endTurnButton = new JButton();
			endTurnButton.setIcon(new ImageIcon(getClass().getResource("/images/endTurn.png")));
			endTurnButton.setBorderPainted(false);
			endTurnButton.setOpaque(false);
			endTurnButton.setBorder(null);
			endTurnButton.setEnabled(false);
			endTurnButton.setContentAreaFilled(false);
			endTurnButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/endTurn_p.png")));
			endTurnButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/endTurn_d.png")));
			endTurnButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					endTurnButtonActionActionPerformed(event);
				}
			});
		}
		return endTurnButton;
	}

	private JTextField getPlayerTextField() {
		if (playerTextField == null) {
			playerTextField = new JTextField();
			playerTextField.setEditable(false);
			playerTextField.setFont(new Font("Eras Light ITC", Font.PLAIN, 22));
			playerTextField.setOpaque(false);
			playerTextField.setAutoscrolls(false);
			playerTextField.setBorder(null);
			playerTextField.setEnabled(false);
			playerTextField.setText("Anonymous");
			playerTextField.setDisabledTextColor(Color.black);
		}
		return playerTextField;
	}

	public JButton getRollDiceButton() {
		if (rollDiceButton == null) {
			rollDiceButton = new JButton();
			rollDiceButton.setIcon(new ImageIcon(getClass().getResource("/images/rollDice.png")));
			rollDiceButton.setBorderPainted(false);
			rollDiceButton.setOpaque(false);
			rollDiceButton.setBorder(null);
			rollDiceButton.setEnabled(false);
			rollDiceButton.setContentAreaFilled(false);
			rollDiceButton.setRolloverIcon(new ImageIcon(getClass().getResource("/images/rollDice_p.png")));
			rollDiceButton.setDisabledIcon(new ImageIcon(getClass().getResource("/images/rollDice_d.png")));
			rollDiceButton.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					rollDiceButtonActionActionPerformed(event);
				}
			});
		}
		return rollDiceButton;
	}

	private JButton getDice2() {
		if (dice2 == null) {
			dice2 = new JButton();
			dice2.setOpaque(false);
			dice2.setBorder(null);
			dice2.setContentAreaFilled(false);
			dice2.setIcon(new ImageIcon(getClass().getResource("/images/dice2-2.png")));
			dice2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					dice2ActionActionPerformed(event);
				}
			});
		}
		return dice2;
	}

	private JButton getDice1() {
		if (dice1 == null) {
			dice1 = new JButton();
			dice1.setOpaque(false);
			dice1.setBorder(null);
			dice1.setContentAreaFilled(false);
			dice1.setIcon(new ImageIcon(getClass().getResource("/images/dice1-5.png")));
			dice1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					dice1ActionActionPerformed(event);
				}
			});
		}
		return dice1;
	}

	private JLabel getGameBoard() {
		if (gameBoard == null) {
			gameBoard = new JLabel();
			gameBoard.setIcon(new ImageIcon(getClass().getResource("/images/board_default.jpg")));
		}
		return gameBoard;
	}

	private JLabel getToken8() {
		if (token8 == null) {
			token8 = new JLabel();
			token8.setIcon(new ImageIcon(getClass().getResource("/images/token8.png")));
			token8.setVisible(false);
		}
		return token8;
	}

	private JLabel getToken7() {
		if (token7 == null) {
			token7 = new JLabel();
			token7.setIcon(new ImageIcon(getClass().getResource("/images/token7.png")));
			token7.setVisible(false);
		}
		return token7;
	}

	private JLabel getToken6() {
		if (token6 == null) {
			token6 = new JLabel();
			token6.setIcon(new ImageIcon(getClass().getResource("/images/token6.png")));
			token6.setVisible(false);
		}
		return token6;
	}

	private JLabel getToken5() {
		if (token5 == null) {
			token5 = new JLabel();
			token5.setIcon(new ImageIcon(getClass().getResource("/images/token5.png")));
			token5.setVisible(false);
		}
		return token5;
	}

	private JLabel getToken4() {
		if (token4 == null) {
			token4 = new JLabel();
			token4.setIcon(new ImageIcon(getClass().getResource("/images/token4.png")));
			token4.setVisible(false);
		}
		return token4;
	}

	private JLabel getToken3() {
		if (token3 == null) {
			token3 = new JLabel();
			token3.setIcon(new ImageIcon(getClass().getResource("/images/token3.png")));
			token3.setVisible(false);
		}
		return token3;
	}

	private JLabel getToken2() {
		if (token2 == null) {
			token2 = new JLabel();
			token2.setIcon(new ImageIcon(getClass().getResource("/images/token2.png")));
			token2.setVisible(false);
		}
		return token2;
	}

	private JLabel getToken1() {
		if (token1 == null) {
			token1 = new JLabel();
			token1.setIcon(new ImageIcon(getClass().getResource("/images/token1.png")));
			token1.setVisible(false);
		}
		return token1;
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////
//THREAD//
/////////////////////////////////////////////////////////////////////////////////////////////////////////

	@SuppressWarnings("static-access")
	public void run()
	{
		
		rollsLeft = 10;
		while(isRolling){
			if(rollsLeft!=0){
				changeDiceImage(dice[0].rollForShuffleDice(), dice[1].rollForShuffleDice());
				try
				{
					t.sleep(100);
				}catch(InterruptedException e){}
				rollsLeft--; //decrement the rollsLeft for each shuffle
				
				if(rollsLeft==0){
					changeDiceImage(dice[0].getResult(),dice[1].getResult());
					orderedPlayer[counter].setTotalSteps(dice[0].getResult()+dice[1].getResult());
					isRolling = false;
				}
			}
		}
		waitsLeft=5;
		while(isWaiting){
			if(waitsLeft!=0){
				try
				{
					t.sleep(100);
				}catch(InterruptedException e){}
				waitsLeft--;
				
				if(waitsLeft==0){
					isWaiting = false;
					
					if(orderedPlayer[counter].isJailed()){ //when jailed
						if(dice[0].getResult()==dice[1].getResult()){ //if player hits double dice
							orderedPlayer[counter].setRollForDoublesCurse(true); //curses the player so player won't get extra roll
							isRunning=true;
							orderedPlayer[counter].setJailRoll(0);
						}else{
							if(orderedPlayer[counter].getJailRoll()==2){ //if player did not hit double dice on third attempt
								orderedPlayer[counter].setJailRoll(0);
								orderedPlayer[counter].setMoney(orderedPlayer[counter].getMoney()-500000);
								updateTextFields();
								isRunning=true;
							}else{
								myUrl= this.getClass().getResource("images/goToJail.au"); 
								makeSound();
								checkEndTurn = true;
								endTurnButton.setEnabled(true);
								isIgnored=false;
								orderedPlayer[counter].setJailRoll((orderedPlayer[counter].getJailRoll())+1);
							}
						}
					}
					
					checkTripleDoubleDice();
				}
			}
		}
		
		while(isRunning){
			if(runsLeft!=orderedPlayer[counter].getTotalSteps()){	//starts the walking
				if(!(orderedPlayer[counter].isBackwards())){ //forward
				//update x and y
					if(orderedPlayer[counter].getPosition()<10){//if the player is standing on tiles 0-10
						if(orderedPlayer[counter].getPosition()==0||orderedPlayer[counter].getPosition()==9){
							orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()-19);
						}
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()-56);//decremented the x position to make move
						}
					if(orderedPlayer[counter].getPosition()>=10&&orderedPlayer[counter].getPosition()<20){//if the player is standing on tiles 10-20
						if(orderedPlayer[counter].getPosition()==10||orderedPlayer[counter].getPosition()==19){
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()-19);
						}
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()-56);//decremented the y position
					}
					if(orderedPlayer[counter].getPosition()>=20&&orderedPlayer[counter].getPosition()<30){//if the player is standing on tiles 20-30
						if(orderedPlayer[counter].getPosition()==20||orderedPlayer[counter].getPosition()==29){
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()+19);
						}
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()+56);//incremented the x position
					}
				
					if(orderedPlayer[counter].getPosition()>=30&&orderedPlayer[counter].getPosition()<40){//if the player is standing on tiles 30-40
						if(orderedPlayer[counter].getPosition()==30||orderedPlayer[counter].getPosition()==39){
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()+19);
						}
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()+56);//incremented the y position
					}

					//increment position
					orderedPlayer[counter].setPosition(orderedPlayer[counter].getPosition()+1);
					
				}else{ //backwards
					if(orderedPlayer[counter].getPosition()<10){
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()+56);
					}
					if(orderedPlayer[counter].getPosition()==22){
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()-56);
					}
					if(orderedPlayer[counter].getPosition()==21){
						orderedPlayer[counter].getToken().setX(orderedPlayer[counter].getToken().getX()-75);
					}
					if(orderedPlayer[counter].getPosition()==20){
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()+75);
					}
					if(orderedPlayer[counter].getPosition()>30){
						orderedPlayer[counter].getToken().setY(orderedPlayer[counter].getToken().getY()-56);
					}

					//decrement position
					orderedPlayer[counter].setPosition(orderedPlayer[counter].getPosition()-1);
					
				}
				
				//stepped on go
				if(orderedPlayer[counter].getPosition()==40){
					orderedPlayer[counter].setMoney(orderedPlayer[counter].getMoney()+2000000);
					orderedPlayer[counter].setPosition(0);
				}
				
				///when player walks out of jail, he is considered free
				if(orderedPlayer[counter].isJailed()){
					orderedPlayer[counter].setJailed(false);		//PLEASE EXPLAIN THIS
				}
				
				updateTextFields();
		        if(orderedPlayer[counter].getPosition()==0)
		        	myUrl= this.getClass().getResource("images/go.au");
			    else
			    	myUrl= this.getClass().getResource("images/step.au"); 
				makeSound();
				
				changeTile(); //changes the image of the tile on the right side of the board
				
				//update token position
				if(orderedPlayer[counter].getAssignedLabel()==1)
					token1.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==2)
					token2.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==3)
					token3.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==4)
					token4.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==5)
					token5.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==6)
					token6.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==7)
					token7.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
				if(orderedPlayer[counter].getAssignedLabel()==8)
					token8.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
			
				try
				{
					t.sleep(350);
				}catch(InterruptedException e){}
				
				runsLeft++;

				}
			else{//stopped walking				
				isRunning=false;
				runsLeft=0;
				orderedPlayer[counter].setTotalSteps(0);
				
				tileClicked = orderedPlayer[counter].getPosition();
				
				if(orderedPlayer[counter].isBackwards()){
					orderedPlayer[counter].setBackwards(false);
				}
				
				switch(board.getBlock()[orderedPlayer[counter].getPosition()].getType()){
				case 0:
					if(orderedPlayer[counter].getPosition() == 30){
						showGoToJail();
					}
					else{
						isIgnored=false;
						if(orderedPlayer[counter].getPosition() == 0
								|| orderedPlayer[counter].getPosition() == 10
								|| orderedPlayer[counter].getPosition() == 20)
						checkEnabledButtons();
						showDoubleDice();
					}
					break;
				case 1://estate
					buyOrPayEstate();
					break;
				case 2://airport
					buyOrPayAirport();
					break;
				case 3://utility
					buyOrPayUtility();
					break;
				case 4://community chest
					showChestCard(2);
					break;
				case 5://chance
					showChanceCard(7);
					break;
				case 6:	//tax
					if(orderedPlayer[counter].getPosition()==4){
						showTaxOptions();
					}
					else{
						showCreditCardTax();
					}
					break;
				default:
					isIgnored=false;
					checkEnabledButtons();
					showDoubleDice();
					break;
				}
			}
		}
		fadesLeft = 10;
		while(isFading){
			if(fadesLeft!=0){
				switch(fadesLeft){
				case 1:
					notebook1.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 2:
					notebook2.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 3:
					notebook3.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 4:
					notebook4.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 5:
					notebook5.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 6:
					notebook6.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 7:
					notebook7.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 8:
					notebook8.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 9:
					notebook9.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				case 10:
					notebook10.setIcon(new ImageIcon(getClass().getResource("/images/emptyNotebook.png")));
					break;
				}
				try
				{
					t.sleep(250);
				}catch(InterruptedException e){}
				fadesLeft--;
				
				if(fadesLeft==0){
					isFading = false;
					myUrl= this.getClass().getResource("images/goToJail.au");
					makeSound();
				}
			}
		}
		laughsLeft = 10;
		while(isLaughing){
			if(laughsLeft!=0){
				try
				{
					t.sleep(400);
				}catch(InterruptedException e){}
				laughsLeft--;
				
				if(laughsLeft==0){
					isLaughing = false;
					orderedPlayer[counter].surrender(board, counter);
					numberOfAlivePlayers--;
					changeMoneyTextField();
					hideToken();
					updateRoofs();
					updateHouse();
					updateTextFields();
					updateCells();
					bankruptcyText.setIcon(new ImageIcon(getClass().getResource("/images/bankruptcyText_p.png")));
					bankruptcyFrame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame_b.png")));
					bankruptedTextField.setText("");
					nextPlayer();
				}
			}
		}
	}
	
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//FUNCTIONS//
/////////////////////////////////////////////////////////////////////////////////////////////////////////
	public void hideToken(){
		if(orderedPlayer[counter].getAssignedLabel()==1)
			token1.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==2)
			token2.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==3)
			token3.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==4)
			token4.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==5)
			token5.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==6)
			token6.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==7)
			token7.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
		if(orderedPlayer[counter].getAssignedLabel()==8)
			token8.setIcon(new ImageIcon(getClass().getResource("/images/emptyToken.png")));
	}
	
	public void changeMoneyTextField(){
		if(counter==0)
			player1Money.setDisabledTextColor(Color.gray);
		if(counter==1)
			player2Money.setDisabledTextColor(Color.gray);
		if(counter==2)
			player3Money.setDisabledTextColor(Color.gray);
		if(counter==3)
			player4Money.setDisabledTextColor(Color.gray);
		if(counter==4)
			player5Money.setDisabledTextColor(Color.gray);
		if(counter==5)
			player6Money.setDisabledTextColor(Color.gray);
		if(counter==6)
			player7Money.setDisabledTextColor(Color.gray);
		if(counter==7)
			player8Money.setDisabledTextColor(Color.gray);
	}
	
	public void nextPlayer(){
		if(numberOfAlivePlayers>1){
			do{
			counter++;
			if(counter==numberOfPlayers){
				counter = 0;
			}
			}while(!(orderedPlayer[counter].isAlive()));
			
			updateTextFields();
			updateCurrentToken();
			
			tileClicked=orderedPlayer[counter].getPosition();
			
			resetBabyDeeds();
			updateBabyDeeds();
			changeTile();
			
			if(isGodMode)
				godModeChangeDice();
			
			if(orderedPlayer[counter].isJailed()){
				isIgnored=true;
				disableDockButtons();
				frame.setIcon(new ImageIcon(getClass().getResource("/images/jailed.png")));
				rollForDoubles.setEnabled(true);
				postBail.setEnabled(true);
				if(orderedPlayer[counter].hasChestKey()||orderedPlayer[counter].hasChanceKey())
				keyButton.setEnabled(true);
			}
			else{
				checkRollDice = true;
				rollDiceButton.setEnabled(true);
				checkEnabledButtons();
			}
		}else{
			do{
				counter++;
				if(counter==numberOfPlayers){
					counter = 0;
				}
				}while(!(orderedPlayer[counter].isAlive()));

			updateTextFields();
			updateCurrentToken();
			tileClicked=orderedPlayer[counter].getPosition();
			resetBabyDeeds();
			updateBabyDeeds();
			changeTile();
			MainFrame.declareWinner();
		}
	}
	
	public void chooseHighestBidder(){
		acceptButtonOption=2;
		chooseHighestBidderButton.setEnabled(true);
		for(int i=0 ; i<numberOfPlayers; i++){
			switch(i){
				case 0:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee1.setEnabled(true);
					break;
				case 1:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee2.setEnabled(true);
					break;
				case 2:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee3.setEnabled(true);
					break;
				case 3:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee4.setEnabled(true);
					break;
				case 4:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee5.setEnabled(true);
					break;
				case 5:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee6.setEnabled(true);
					break;
				case 6:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee7.setEnabled(true);
					break;
				case 7:
					if(orderedPlayer[i].getMoney()>10000&&orderedPlayer[i].isAlive())
					chooseTradee8.setEnabled(true);
					break;
			}
		}
	}
	
	public void disableChooseHighestBidder(){
		isIgnored=false;
		chooseHighestBidderButton.setEnabled(false);
		chooseTradee1.setEnabled(false);
		chooseTradee2.setEnabled(false);
		chooseTradee3.setEnabled(false);
		chooseTradee4.setEnabled(false);
		chooseTradee5.setEnabled(false);
		chooseTradee6.setEnabled(false);
		chooseTradee7.setEnabled(false);
		chooseTradee8.setEnabled(false);
	}
	
	public void chooseTradee(){
		acceptButtonOption=1;
		disableDockButtons();
		chooseTradeeButton.setEnabled(true);
		for(int i=0 ; i<numberOfPlayers; i++){
			switch(i){
				case 0:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee1.setEnabled(true);
					break;
				case 1:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee2.setEnabled(true);
					break;
				case 2:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee3.setEnabled(true);
					break;
				case 3:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee4.setEnabled(true);
					break;
				case 4:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee5.setEnabled(true);
					break;
				case 5:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee6.setEnabled(true);
					break;
				case 6:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee7.setEnabled(true);
					break;
				case 7:
					if(!(counter==i)&&orderedPlayer[i].isAlive())
					chooseTradee8.setEnabled(true);
					break;
			}
		}
	}
	
	public void disableChooseTradee(){
		isIgnored=false;
		chooseTradeeButton.setEnabled(false);
		chooseTradee1.setEnabled(false);
		chooseTradee2.setEnabled(false);
		chooseTradee3.setEnabled(false);
		chooseTradee4.setEnabled(false);
		chooseTradee5.setEnabled(false);
		chooseTradee6.setEnabled(false);
		chooseTradee7.setEnabled(false);
		chooseTradee8.setEnabled(false);
	}
	
	public void createToolTipTexts(){
		babyDeed1.setToolTipText("Jacob's Field, Cleaveland");
		babyDeed3.setToolTipText("Texas Stadium, Dallas");
		babyDeed5.setToolTipText("O'hare Airport");
		babyDeed6.setToolTipText("Grand Ole Opry, Nashville");
		babyDeed8.setToolTipText("Gateway Arch, St. Louis");
		babyDeed9.setToolTipText("Mall Of America, Minneapolis");
		babyDeed11.setToolTipText("Centennial Olympic Park, Atlanta");
		babyDeed12.setToolTipText("Phone Service Provider");
		babyDeed13.setToolTipText("Red Rocks Amphitheatre, Denver");
		babyDeed14.setToolTipText("Liberty Bell, Philadelphia");
		babyDeed15.setToolTipText("Los Angeles Airport");
		babyDeed16.setToolTipText("South Beach, Miama");
		babyDeed18.setToolTipText("Johnson Space Center, Houston");
		babyDeed19.setToolTipText("Pioneer Square, Seattle");
		babyDeed21.setToolTipText("Camelback Mtn., Phoenix");
		babyDeed23.setToolTipText("Waikiki Beach, Honolulu");
		babyDeed24.setToolTipText("Disney World, Orlando");
		babyDeed25.setToolTipText("John F. Kennedy Airport");
		babyDeed26.setToolTipText("French Quarter, New Orleans");
		babyDeed27.setToolTipText("Hollywood, Los Angeles");
		babyDeed28.setToolTipText("Internet Service Provider");
		babyDeed29.setToolTipText("Golden Gate Bridge, San Francisco");
		babyDeed31.setToolTipText("Las Vegas Blvd., Las Vegas");
		babyDeed32.setToolTipText("Wringley Field, Chicago");
		babyDeed34.setToolTipText("White House, Washington, D.C.");
		babyDeed35.setToolTipText("Hatsfield-Jackson Airport");
		babyDeed37.setToolTipText("Fenway Park, Boston");
		babyDeed39.setToolTipText("Times Square, New York");
		babyDeedKey1.setToolTipText("Chance Card Jail Key");
		babyDeedKey2.setToolTipText("Community Chest Card Jail Key");
		cell0.setToolTipText("Go");
		cell1.setToolTipText("Jacob's Field, Cleaveland");
		cell2.setToolTipText("Community Chest");
		cell3.setToolTipText("Texas Stadium, Dallas");
		cell4.setToolTipText("Income Tax");
		cell5.setToolTipText("O'hare Airport");
		cell6.setToolTipText("Grand Ole Opry, Nashville");
		cell7.setToolTipText("Chance");
		cell8.setToolTipText("Gateway Arch, St. Louis");
		cell9.setToolTipText("Mall Of America, Minneapolis");
		cell10.setToolTipText("Jail");
		cell11.setToolTipText("Centennial Olympic Park, Atlanta");
		cell12.setToolTipText("Phone Service Provider");
		cell13.setToolTipText("Red Rocks Amphitheatre, Denver");
		cell14.setToolTipText("Liberty Bell, Philadelphia");
		cell15.setToolTipText("Los Angeles Airport");
		cell16.setToolTipText("South Beach, Miama");
		cell17.setToolTipText("Community Chest");
		cell18.setToolTipText("Johnson Space Center, Houston");
		cell19.setToolTipText("Pioneer Square, Seattle");
		cell20.setToolTipText("Parking");
		cell21.setToolTipText("Camelback Mtn., Phoenix");
		cell22.setToolTipText("Chance");
		cell23.setToolTipText("Waikiki Beach, Honolulu");
		cell24.setToolTipText("Disney World, Orlando");
		cell25.setToolTipText("John F. Kennedy Airport");
		cell26.setToolTipText("French Quarter, New Orleans");
		cell27.setToolTipText("Hollywood, Los Angeles");
		cell28.setToolTipText("Internet Service Provider");
		cell29.setToolTipText("Golden Gate Bridge, San Francisco");
		cell30.setToolTipText("Go To Jail");
		cell31.setToolTipText("Las Vegas Blvd., Las Vegas");
		cell32.setToolTipText("Wringley Field, Chicago");
		cell33.setToolTipText("Community Chest");
		cell34.setToolTipText("White House, Washington, D.C.");
		cell35.setToolTipText("Hatsfield-Jackson Airport");
		cell36.setToolTipText("Chance");
		cell37.setToolTipText("Fenway Park, Boston");
		cell38.setToolTipText("Credit Card Debt");
		cell39.setToolTipText("Times Square, New York");
		showStats.setToolTipText("View Money Of All Players");
	}
	
	//disables dock buttons
	public void disableDockButtons(){
		buildButton.setEnabled(false);
		sellButton.setEnabled(false);
		mortgageButton.setEnabled(false);
		redeemButton.setEnabled(false);
		tradeButton.setEnabled(false);
		rollDiceButton.setEnabled(false);
		endTurnButton.setEnabled(false);
	}
	
	//updates all money text fields
	public void updateTextFields(){
		//FOR CURRENT PLAYER
		playerTextField.setText(orderedPlayer[counter].getName());
		//FOR CURRENT PLAYER LOCATION
		switch(board.getBlock()[orderedPlayer[counter].getPosition()].getType()){
		case 0:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getName());
			break;
		case 1:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().getName());
			break;
		case 2:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().getName());
			break;
		case 3:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().getName());
			break;
		case 4:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getChest().getName());
			break;
		case 5:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getChance().getName());
			break;
		case 6:
			playerPositionTextField.setText(board.getBlock()[orderedPlayer[counter].getPosition()].getTax().getName());
			break;
		}
		//FOR MONEY TEXT FIELDS
		playerMoneyTextField.setText("$ "+orderedPlayer[counter].getMoney());
		if(!isMoneyShowed){
			player1Money.setText("");
			player2Money.setText("");
			player3Money.setText("");
			player4Money.setText("");
			player5Money.setText("");
			player6Money.setText("");
			player7Money.setText("");
			player8Money.setText("");
		}else{
			for(int i=0; i<numberOfPlayers; i++){
				if(i==0)
				player1Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==1)
				player2Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==2)
				player3Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==3)
				player4Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==4)
				player5Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==5)
				player6Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==6)
				player7Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
				if(i==7)
				player8Money.setText(orderedPlayer[i].getName()+" : $ "+orderedPlayer[i].getMoney());
			}
		}
	}
	
	//change of dice display image on god mode
	public void godModeChangeDice(){
		myUrl= this.getClass().getResource("images/dice1-"+godModeDice1+".png"); 
		dice1.setIcon(new ImageIcon(myUrl));
		myUrl= this.getClass().getResource("images/dice2-"+godModeDice2+".png"); 
		dice2.setIcon(new ImageIcon(myUrl));
	}
	
	//runs a checker to handle which buttons are enabled/disabled
	public void checkEnabledButtons(){
		//IF CONDITION FOR BUILD BUTTON
		if(board.getBlock()[tileClicked].getType()==1){
			board.checkNeighborProperties(board.getBlock(), tileClicked);
			if(counter==board.getBlock()[tileClicked].getEstate().getOwnerInt()
					&&(orderedPlayer[counter].getCompletedMonopoly()[board.getBlock()[tileClicked].getEstate().getColorGroup()])
					&&!(board.getBlock()[tileClicked].getEstate().getNumberOfHouse()==5)
					&&board.getBlock()[tileClicked].getEstate().canHaveHouse()
					&& !(board.getBlock()[tileClicked].getEstate().isMortgaged()))
				buildButton.setEnabled(true);	
			else
				buildButton.setEnabled(false);
		}else{
			buildButton.setEnabled(false);
		}
		//IF CONDITION FOR SELL BUTTON
		if(board.getBlock()[tileClicked].getType()==1){
			board.checkNeighborProperties(board.getBlock(), tileClicked);
			if(counter==board.getBlock()[tileClicked].getEstate().getOwnerInt()
				&&board.getBlock()[tileClicked].getEstate().canLoseHouse()
				&&(board.getBlock()[tileClicked].getEstate().getNumberOfHouse()!=0))
				sellButton.setEnabled(true);	
			else
				sellButton.setEnabled(false);
		}else
			sellButton.setEnabled(false);
		//IF CONDITION FOR MORTGAGE BUTTON
		switch(board.getBlock()[tileClicked].getType()){
			case 1:
				if(counter==board.getBlock()[tileClicked].getEstate().getOwnerInt() 
						&& board.getBlock()[tileClicked].getEstate().getNumberOfHouse()==0
						&& !(board.getBlock()[tileClicked].getEstate().isMortgaged()))
						mortgageButton.setEnabled(true);
					else
						mortgageButton.setEnabled(false);
				break;
			case 2:
				if(counter==board.getBlock()[tileClicked].getAirport().getOwnerInt() 
						&& !(board.getBlock()[tileClicked].getAirport().isMortgaged()))
						mortgageButton.setEnabled(true);
					else
						mortgageButton.setEnabled(false);
				break;
			case 3:
				if(counter==board.getBlock()[tileClicked].getUtility().getOwnerInt() 
						&& !(board.getBlock()[tileClicked].getUtility().isMortgaged()))
						mortgageButton.setEnabled(true);
					else
						mortgageButton.setEnabled(false);
				break;
			default:
				mortgageButton.setEnabled(false);
				break;
		}
		//IF CONDITION FOR REDEEM BUTTON
		switch(board.getBlock()[tileClicked].getType()){
			case 1:
				if(counter==board.getBlock()[tileClicked].getEstate().getOwnerInt() 
						&& (board.getBlock()[tileClicked].getEstate().isMortgaged()))
						redeemButton.setEnabled(true);
					else
						redeemButton.setEnabled(false);
				break;
			case 2:
				if(counter==board.getBlock()[tileClicked].getAirport().getOwnerInt() 
						&& (board.getBlock()[tileClicked].getAirport().isMortgaged()))
						redeemButton.setEnabled(true);
					else
						redeemButton.setEnabled(false);
				break;
			case 3:
				if(counter==board.getBlock()[tileClicked].getUtility().getOwnerInt() 
						&& (board.getBlock()[tileClicked].getUtility().isMortgaged()))
						redeemButton.setEnabled(true);
					else
						redeemButton.setEnabled(false);
				break;
			default:
				redeemButton.setEnabled(false);
				break;
		}
		//IF CONDITION FOR TRADE BUTTON
		if(numberOfPlayers>1)
			tradeButton.setEnabled(true);
		//IF CONDITION FOR ROLLDICE AND ENDTURN BUTTON
		if(checkEndTurn)
			endTurnButton.setEnabled(true);
		else
			endTurnButton.setEnabled(false);
		if(checkRollDice)
			rollDiceButton.setEnabled(true);
		else
			rollDiceButton.setEnabled(false);
	}
	
	//function for updating houses on tiles
	public void updateHouse(){
		for(int i=0;i<40;i++){
			char myChar=0;
			if((i<10)||(i>=20&&i<30))
			myChar = 'H';
			if((i>=10&&i<20)||(i>=30&&i<40))
			myChar = 'V';
			
			if(board.getBlock()[i].getType()==1)
			myUrl= this.getClass().getResource("images/"+myChar+"House"+(board.getBlock()[i].getEstate().getNumberOfHouse())+".png"); 
	
			switch(i){
			case 1:
				tile1House.setIcon(new ImageIcon(myUrl));
				break;
			case 3:
				tile3House.setIcon(new ImageIcon(myUrl));
				break;
			case 6:
				tile6House.setIcon(new ImageIcon(myUrl));
				break;
			case 8:
				tile8House.setIcon(new ImageIcon(myUrl));
				break;
			case 9:
				tile9House.setIcon(new ImageIcon(myUrl));
				break;
			case 11:
				tile11House.setIcon(new ImageIcon(myUrl));
				break;
			case 13:
				tile13House.setIcon(new ImageIcon(myUrl));
				break;
			case 14:
				tile14House.setIcon(new ImageIcon(myUrl));
				break;
			case 16:
				tile16House.setIcon(new ImageIcon(myUrl));
				break;
			case 18:
				tile18House.setIcon(new ImageIcon(myUrl));
				break;
			case 19:
				tile19House.setIcon(new ImageIcon(myUrl));
				break;
			case 21:
				tile21House.setIcon(new ImageIcon(myUrl));
				break;
			case 23:
				tile23House.setIcon(new ImageIcon(myUrl));
				break;
			case 24:
				tile24House.setIcon(new ImageIcon(myUrl));
				break;
			case 26:
				tile26House.setIcon(new ImageIcon(myUrl));
				break;
			case 27:
				tile27House.setIcon(new ImageIcon(myUrl));
				break;
			case 29:
				tile29House.setIcon(new ImageIcon(myUrl));
				break;
			case 31:
				tile31House.setIcon(new ImageIcon(myUrl));
				break;
			case 32:
				tile32House.setIcon(new ImageIcon(myUrl));
				break;
			case 34:
				tile34House.setIcon(new ImageIcon(myUrl));
				break;
			case 37:
				tile37House.setIcon(new ImageIcon(myUrl));
				break;
			case 39:
				tile39House.setIcon(new ImageIcon(myUrl));
				break;
			}
		}
	}
	
	private void showTaxOptions() {
		frame.setIcon(new ImageIcon(getClass().getResource("/images/incomeTax.png")));
		tenPercentTaxButton.setEnabled(true);
		twoMillionTaxButton.setEnabled(true);
	}
	
	private void showMortgage() {
		disableDockButtons();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/mortgageProperty.png")));
		switch(board.getBlock()[tileClicked].getType()){
		case 1:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getEstate().getPropertyName());
			property2TextField.setText("Mortgage Value : $ "+board.getBlock()[tileClicked].getEstate().getTitleDeed().getMortgageValue());
			break;
		case 2:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getAirport().getPropertyName());
			property2TextField.setText("Mortgage Value : $ "+board.getBlock()[tileClicked].getAirport().getTitleDeed().getMortgageValue());
			break;
		case 3:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getUtility().getPropertyName());
			property2TextField.setText("Mortgage Value : $ "+board.getBlock()[tileClicked].getUtility().getTitleDeed().getMortgageValue());
			break;
		}
		acceptButtonOption=5;
		acceptButton2.setEnabled(true);
	}
	
	private void showRedeem() {
		disableDockButtons();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/unmortgageProperty.png")));
		switch(board.getBlock()[tileClicked].getType()){
		case 1:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getEstate().getPropertyName());
			property2TextField.setText("Redeem Value : $ "+board.getBlock()[tileClicked].getEstate().getTitleDeed().getRedeemValue());
			break;
		case 2:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getAirport().getPropertyName());
			property2TextField.setText("Redeem Value : $ "+board.getBlock()[tileClicked].getAirport().getTitleDeed().getRedeemValue());
			break;
		case 3:
			property1TextField.setText("Property : "+board.getBlock()[tileClicked].getUtility().getPropertyName());
			property2TextField.setText("Redeem Value : $ "+board.getBlock()[tileClicked].getUtility().getTitleDeed().getRedeemValue());
			break;
		}
		acceptButtonOption=6;
		acceptButton2.setEnabled(true);
	}
	
	private void showGreedy(){
		frame.setIcon(new ImageIcon(getClass().getResource("/images/tripleDice.png")));
		acceptButtonOption=1;
		acceptButton.setEnabled(true);
	}
	
	public void showGoToJail(){
		frame.setIcon(new ImageIcon(getClass().getResource("/images/goToJail.png")));
		acceptButtonOption=1;
		acceptButton.setEnabled(true);
	}
	
	private void showBankruptcy() {
		isIgnored=true;
		disableDockButtons();
		bankruptcyFrame.setIcon(new ImageIcon(getClass().getResource("/images/bankruptcy.png")));
		declareBankruptcy.setEnabled(true);
		reviewAssets.setEnabled(true);
	}
	
	private void showCreditCardTax(){
		frame.setIcon(new ImageIcon(getClass().getResource("/images/creditCardTax.png")));
		acceptButtonOption=2;
		acceptButton.setEnabled(true);
	}
	
	public void showForSaleGui(){
		frame.setIcon(new ImageIcon(getClass().getResource("/images/buyProperty.png")));
		acceptButtonOption=1;
		acceptButton2.setEnabled(true);
		auctionButton.setEnabled(true);
	}
	
	public void showPayRentGui(){
		frame.setIcon(new ImageIcon(getClass().getResource("/images/payRent.png")));
		acceptButtonOption=2;
		acceptButton2.setEnabled(true);
	}
	
	public void showHousePrice(){
		disableDockButtons();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/buyHouse.png")));
		buildButton.setEnabled(false);
		property1TextField.setText("Property : "+board.getBlock()[tileClicked].getEstate().getPropertyName());
		property2TextField.setText("Building Price : $ "+board.getBlock()[tileClicked].getEstate().getTitleDeed().getHouseCost());
		acceptButtonOption=3;
		acceptButton2.setEnabled(true);
	}
	
	public void showSellHouse(){
		disableDockButtons();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/sellHouse.png")));
		sellButton.setEnabled(false);
		property1TextField.setText("Property : "+board.getBlock()[tileClicked].getEstate().getPropertyName());
		property2TextField.setText("Building Price : $ "+(board.getBlock()[tileClicked].getEstate().getTitleDeed().getHouseCost())/2);
		acceptButtonOption=4;
		acceptButton2.setEnabled(true);
	}

	//function for buying or paying rent
	public void buyOrPayEstate(){
		if(!(board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().isOwned())){
			showForSaleGui();
			property1TextField.setText("Name : "+board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().getPropertyName());
			property2TextField.setText("Price : $ "+board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().getPrice());
		}else{
			if(!(counter==board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().getOwnerInt())
			&&!(board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().isMortgaged())){
				showPayRentGui();
				
				rent = orderedPlayer[counter].computeForRent(board.getBlock(), orderedPlayer[counter].getPosition(), orderedPlayer, counter, dice[0].getResult(), dice[1].getResult());
				
				property1TextField.setText("Owner : "+board.getBlock()[orderedPlayer[counter].getPosition()].getEstate().getOwner());
				property2TextField.setText("Rent : $ "+rent);
			}else{
				showDoubleDice();
				isIgnored=false;
				tileClicked=orderedPlayer[counter].getPosition();
				checkEnabledButtons();
			}
		}
	}
	
	//function for buying or paying rent
	public void buyOrPayAirport(){
		if(!(board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().isOwned())){
			showForSaleGui();
			property1TextField.setText("Name : "+board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().getPropertyName());
			property2TextField.setText("Price : $ "+board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().getPrice());
		}else{
			if(!(counter==board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().getOwnerInt())
			&&!(board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().isMortgaged())){
				showPayRentGui();
				
				rent = orderedPlayer[counter].computeForRent(board.getBlock(), orderedPlayer[counter].getPosition(), orderedPlayer, counter, dice[0].getResult(), dice[1].getResult());
				
				property1TextField.setText("Owner : "+board.getBlock()[orderedPlayer[counter].getPosition()].getAirport().getOwner());
				property2TextField.setText("Rent : $ "+rent);
			}else{
				if(orderedPlayer[counter].isAirportCursed())
					orderedPlayer[counter].setAirportCursed(false);
				showDoubleDice();
				isIgnored=false;
				tileClicked=orderedPlayer[counter].getPosition();
				checkEnabledButtons();
			}
		}
	}
	
	//function for buying or paying rent
	public void buyOrPayUtility(){
		if(!(board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().isOwned())){
			showForSaleGui();
			property1TextField.setText("Name : "+board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().getPropertyName());
			property2TextField.setText("Price : $ "+board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().getPrice());
		}else{
			if(!(counter==board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().getOwnerInt())
			&&!(board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().isMortgaged())){
				showPayRentGui();
				
				rent = orderedPlayer[counter].computeForRent(board.getBlock(), orderedPlayer[counter].getPosition(), orderedPlayer, counter, dice[0].getResult(), dice[1].getResult());
				
				property1TextField.setText("Owner : "+board.getBlock()[orderedPlayer[counter].getPosition()].getUtility().getOwner());
				property2TextField.setText("Rent : $ "+rent);
			}else{
				if(orderedPlayer[counter].isUtilityCursed())
					orderedPlayer[counter].setUtilityCursed(false);
				showDoubleDice();
				isIgnored=false;
				tileClicked=orderedPlayer[counter].getPosition();
				checkEnabledButtons();
			}
		}
	}

	//function that resets baby deeds to blank (unnecessary but worth doing)
	public void resetBabyDeeds(){
		babyDeed1.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed3.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed5.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed6.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed8.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed9.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed11.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed12.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed13.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed14.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed15.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed16.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed18.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed19.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed21.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed23.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed24.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed25.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed26.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed27.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed28.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed29.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed31.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed32.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed34.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed35.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed37.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeed39.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedEmpty.jpg")));
		babyDeedKey1.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
		babyDeedKey2.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedEmpty.jpg")));
	}
	
	//function that updates baby deeds
	public void updateBabyDeeds(){
		if(counter==board.getBlock()[1].getEstate().getOwnerInt()){
			if(board.getBlock()[1].getEstate().isMortgaged())
				babyDeed1.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedViolet.jpg")));
			else
				babyDeed1.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedVioletM.jpg")));
		}
		if(counter==board.getBlock()[3].getEstate().getOwnerInt()){
			if(board.getBlock()[3].getEstate().isMortgaged())
				babyDeed3.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedViolet.jpg")));
			else
				babyDeed3.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedVioletM.jpg")));
		}
		if(counter==board.getBlock()[5].getAirport().getOwnerInt()){
			if(board.getBlock()[5].getAirport().isMortgaged())
				babyDeed5.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirport.jpg")));
			else
				babyDeed5.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirportM.jpg")));
		}
		if(counter==board.getBlock()[6].getEstate().getOwnerInt()){
			if(board.getBlock()[6].getEstate().isMortgaged())
				babyDeed6.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhite.jpg")));
			else
				babyDeed6.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhiteM.jpg")));
		}
		if(counter==board.getBlock()[8].getEstate().getOwnerInt()){
			if(board.getBlock()[8].getEstate().isMortgaged())
				babyDeed8.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhite.jpg")));
			else
				babyDeed8.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhiteM.jpg")));
		}
		if(counter==board.getBlock()[9].getEstate().getOwnerInt()){
			if(board.getBlock()[9].getEstate().isMortgaged())
				babyDeed9.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhite.jpg")));
			else
				babyDeed9.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedWhiteM.jpg")));
		}
		if(counter==board.getBlock()[11].getEstate().getOwnerInt()){
			if(board.getBlock()[11].getEstate().isMortgaged())
				babyDeed11.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPink.jpg")));
			else
				babyDeed11.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPinkM.jpg")));
		}
		if(counter==board.getBlock()[12].getUtility().getOwnerInt()){
			if(board.getBlock()[12].getUtility().isMortgaged())
				babyDeed12.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPhone.jpg")));
			else
				babyDeed12.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPhoneM.jpg")));
		}
		if(counter==board.getBlock()[13].getEstate().getOwnerInt()){
			if(board.getBlock()[13].getEstate().isMortgaged())
				babyDeed13.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPink.jpg")));
			else
				babyDeed13.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPinkM.jpg")));
		}
		if(counter==board.getBlock()[14].getEstate().getOwnerInt()){
			if(board.getBlock()[14].getEstate().isMortgaged())
				babyDeed14.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPink.jpg")));
			else
				babyDeed14.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedPinkM.jpg")));
		}
		if(counter==board.getBlock()[15].getAirport().getOwnerInt()){
			if(board.getBlock()[15].getAirport().isMortgaged())
				babyDeed15.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirport.jpg")));
			else
				babyDeed15.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirportM.jpg")));
		}
		if(counter==board.getBlock()[16].getEstate().getOwnerInt()){
			if(board.getBlock()[16].getEstate().isMortgaged())
				babyDeed16.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrange.jpg")));
			else
				babyDeed16.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrangeM.jpg")));
		}
		if(counter==board.getBlock()[18].getEstate().getOwnerInt()){
			if(board.getBlock()[18].getEstate().isMortgaged())
				babyDeed18.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrange.jpg")));
			else
				babyDeed18.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrangeM.jpg")));
		}
		if(counter==board.getBlock()[19].getEstate().getOwnerInt()){
			if(board.getBlock()[19].getEstate().isMortgaged())
				babyDeed19.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrange.jpg")));
			else
				babyDeed19.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedOrangeM.jpg")));
		}
		if(counter==board.getBlock()[21].getEstate().getOwnerInt()){
			if(board.getBlock()[21].getEstate().isMortgaged())
				babyDeed21.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRed.jpg")));
			else
				babyDeed21.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRedM.jpg")));
		}
		if(counter==board.getBlock()[23].getEstate().getOwnerInt()){
			if(board.getBlock()[23].getEstate().isMortgaged())
				babyDeed23.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRed.jpg")));
			else
				babyDeed23.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRedM.jpg")));
		}
		if(counter==board.getBlock()[24].getEstate().getOwnerInt()){
			if(board.getBlock()[24].getEstate().isMortgaged())
				babyDeed24.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRed.jpg")));
			else
				babyDeed24.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedRedM.jpg")));
		}
		if(counter==board.getBlock()[25].getAirport().getOwnerInt()){
			if(board.getBlock()[25].getAirport().isMortgaged())
				babyDeed25.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirport.jpg")));
			else
				babyDeed25.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirportM.jpg")));
		}
		if(counter==board.getBlock()[26].getEstate().getOwnerInt()){
			if(board.getBlock()[26].getEstate().isMortgaged())
				babyDeed26.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellow.jpg")));
			else
				babyDeed26.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellowM.jpg")));
		}
		if(counter==board.getBlock()[27].getEstate().getOwnerInt()){
			if(board.getBlock()[27].getEstate().isMortgaged())
				babyDeed27.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellow.jpg")));
			else
				babyDeed27.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellowM.jpg")));
		}
		if(counter==board.getBlock()[28].getUtility().getOwnerInt()){
			if(board.getBlock()[28].getUtility().isMortgaged())
				babyDeed28.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedInternet.jpg")));
			else
				babyDeed28.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedInternetM.jpg")));
		}
		if(counter==board.getBlock()[29].getEstate().getOwnerInt()){
			if(board.getBlock()[29].getEstate().isMortgaged())
				babyDeed29.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellow.jpg")));
			else
				babyDeed29.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedYellowM.jpg")));
		}
		if(counter==board.getBlock()[31].getEstate().getOwnerInt()){
			if(board.getBlock()[31].getEstate().isMortgaged())
				babyDeed31.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreen.jpg")));
			else
				babyDeed31.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreenM.jpg")));
		}
		if(counter==board.getBlock()[32].getEstate().getOwnerInt()){
			if(board.getBlock()[32].getEstate().isMortgaged())
				babyDeed32.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreen.jpg")));
			else
				babyDeed32.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreenM.jpg")));
		}
		if(counter==board.getBlock()[34].getEstate().getOwnerInt()){
			if(board.getBlock()[34].getEstate().isMortgaged())
				babyDeed34.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreen.jpg")));
			else
				babyDeed34.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedGreenM.jpg")));
		}
		if(counter==board.getBlock()[35].getAirport().getOwnerInt()){
			if(board.getBlock()[35].getAirport().isMortgaged())
				babyDeed35.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirport.jpg")));
			else
				babyDeed35.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedAirportM.jpg")));
		}
		if(counter==board.getBlock()[37].getEstate().getOwnerInt()){
			if(board.getBlock()[37].getEstate().isMortgaged())
				babyDeed37.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedBlue.jpg")));
			else
				babyDeed37.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedBlueM.jpg")));
		}
		if(counter==board.getBlock()[39].getEstate().getOwnerInt()){
			if(board.getBlock()[39].getEstate().isMortgaged())
				babyDeed39.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedBlue.jpg")));
			else
				babyDeed39.setIcon(new ImageIcon(this.getClass().getResource("images/babyDeedBlueM.jpg")));
		}
			
		if(orderedPlayer[counter].hasChanceKey())
			babyDeedKey1.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedKey.jpg")));
		if(orderedPlayer[counter].hasChestKey())
			babyDeedKey2.setIcon(new ImageIcon(getClass().getResource("/images/babyDeedKey.jpg")));
		}
	
	
	public void updateCells(){
		for(int i=0;i<40;i++){
			char myChar2 = 0;
			if((i<10)||(i>=20&&i<30))
				myChar2 = 'H';
			if((i>=10&&i<20)||(i>=30&&i<40))
				myChar2 = 'V';
	
			char myChar = 0;
			
			switch(board.getBlock()[i].getType()){
				case 1:
					if(board.getBlock()[i].getEstate().isMortgaged())
						myChar = 'M';
					else
						myChar = 'U';
					break;
				case 2:
					if(board.getBlock()[i].getAirport().isMortgaged())
						myChar = 'M';
					else
						myChar = 'U';
					break;
				case 3:
					if(board.getBlock()[i].getUtility().isMortgaged())
						myChar = 'M';
					else
						myChar = 'U';
					break;
			}
			
			myUrl= this.getClass().getResource("images/"+myChar2+myChar+".png");
			
			switch(i){
			case 1:
				cell1.setIcon(new ImageIcon(myUrl));
				break;
			case 3:
				cell3.setIcon(new ImageIcon(myUrl));
				break;
			case 5:
				cell5.setIcon(new ImageIcon(myUrl));
				break;
			case 6:
				cell6.setIcon(new ImageIcon(myUrl));
				break;
			case 8:
				cell8.setIcon(new ImageIcon(myUrl));
				break;
			case 9:
				cell9.setIcon(new ImageIcon(myUrl));
				break;
			case 11:
				cell11.setIcon(new ImageIcon(myUrl));
				break;
			case 12:
				cell12.setIcon(new ImageIcon(myUrl));
				break;
			case 13:
				cell13.setIcon(new ImageIcon(myUrl));
				break;
			case 14:
				cell14.setIcon(new ImageIcon(myUrl));
				break;
			case 15:
				cell15.setIcon(new ImageIcon(myUrl));
				break;
			case 16:
				cell16.setIcon(new ImageIcon(myUrl));
				break;
			case 18:
				cell18.setIcon(new ImageIcon(myUrl));
				break;
			case 19:
				cell19.setIcon(new ImageIcon(myUrl));
				break;
			case 21:
				cell21.setIcon(new ImageIcon(myUrl));
				break;
			case 23:
				cell23.setIcon(new ImageIcon(myUrl));
				break;
			case 24:
				cell24.setIcon(new ImageIcon(myUrl));
				break;
			case 25:
				cell25.setIcon(new ImageIcon(myUrl));
				break;
			case 26:
				cell26.setIcon(new ImageIcon(myUrl));
				break;
			case 27:
				cell27.setIcon(new ImageIcon(myUrl));
				break;
			case 28:
				cell28.setIcon(new ImageIcon(myUrl));
				break;
			case 29:
				cell29.setIcon(new ImageIcon(myUrl));
				break;
			case 31:
				cell31.setIcon(new ImageIcon(myUrl));
				break;
			case 32:
				cell32.setIcon(new ImageIcon(myUrl));
				break;
			case 34:
				cell34.setIcon(new ImageIcon(myUrl));
				break;
			case 35:
				cell35.setIcon(new ImageIcon(myUrl));
				break;
			case 37:
				cell37.setIcon(new ImageIcon(myUrl));
				break;
			case 39:
				cell39.setIcon(new ImageIcon(myUrl));
				break;
			}
		}
	}
	
	//function for adding roofs
	public void updateRoofs(){
		if(board.getBlock()[1].getEstate().isOwned())
			tile1Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[1].getEstate().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile1Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[3].getEstate().isOwned())
			tile3Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[3].getEstate().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile3Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[6].getEstate().isOwned())
			tile6Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[6].getEstate().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile6Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[8].getEstate().isOwned())
			tile8Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[8].getEstate().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile8Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[9].getEstate().isOwned())
			tile9Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[9].getEstate().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile9Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[11].getEstate().isOwned())
			tile11Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[11].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile11Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[13].getEstate().isOwned())
			tile13Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[13].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile13Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[14].getEstate().isOwned())
			tile14Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[14].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile14Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[16].getEstate().isOwned())
			tile16Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[16].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile16Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[18].getEstate().isOwned())
			tile18Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[18].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile18Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[19].getEstate().isOwned())
			tile19Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[19].getEstate().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile19Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[21].getEstate().isOwned())
			tile21Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[21].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile21Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[23].getEstate().isOwned())
			tile23Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[23].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile23Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[24].getEstate().isOwned())
			tile24Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[24].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile24Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[26].getEstate().isOwned())
			tile26Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[26].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile26Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[27].getEstate().isOwned())
			tile27Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[27].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile27Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[29].getEstate().isOwned())
			tile29Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[29].getEstate().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile29Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[31].getEstate().isOwned())
			tile31Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[31].getEstate().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile31Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[32].getEstate().isOwned())
			tile32Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[32].getEstate().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile32Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[34].getEstate().isOwned())
			tile34Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[34].getEstate().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile34Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[37].getEstate().isOwned())
			tile37Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[37].getEstate().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile37Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[39].getEstate().isOwned())
			tile39Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[39].getEstate().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile39Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[5].getAirport().isOwned())
			tile5Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[5].getAirport().getOwnerInt()].getAssignedLabel()+"S.png")));
		else
			tile5Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[15].getAirport().isOwned())
			tile15Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[15].getAirport().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile15Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[25].getAirport().isOwned())
			tile25Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[25].getAirport().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile25Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
		if(board.getBlock()[35].getAirport().isOwned())
			tile35Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[35].getAirport().getOwnerInt()].getAssignedLabel()+"E.png")));
		else
			tile35Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[12].getUtility().isOwned())
			tile12Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[12].getUtility().getOwnerInt()].getAssignedLabel()+"W.png")));
		else
			tile12Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyWE.png")));
		if(board.getBlock()[28].getUtility().isOwned())
			tile28Owner.setIcon(new ImageIcon(this.getClass().getResource("images/ownerToken"+orderedPlayer[board.getBlock()[28].getUtility().getOwnerInt()].getAssignedLabel()+"N.png")));
		else
			tile28Owner.setIcon(new ImageIcon(getClass().getResource("/images/emptyNS.png")));
	}
	
	//updates the image on the top right
	public void updateCurrentToken(){
		myUrl= this.getClass().getResource("images/token"+orderedPlayer[counter].getAssignedLabel()+"_b.png"); 
		currentToken.setIcon(new ImageIcon(myUrl));
	}

	//changes current display depending on position
	public void changeTile(){
		myUrl= this.getClass().getResource("images/tileDisplay"+orderedPlayer[counter].getPosition()+".png"); 
		showTile.setIcon(new ImageIcon(myUrl));
	}
	
	//handles double dice rules
	public void showDoubleDice() {
		if(dice[0].getResult() == dice[1].getResult()&& !(orderedPlayer[counter].isRollForDoublesCurse())){
			doubleDiceButton.setEnabled(true);
			checkRollDice = true;
			rollDiceButton.setEnabled(true);
		}else{
			orderedPlayer[counter].setExtraTurn(0);
			checkEndTurn = true;
			endTurnButton.setEnabled(true);
			if(orderedPlayer[counter].isRollForDoublesCurse()) //remove curse when cursed
			orderedPlayer[counter].setRollForDoublesCurse(false);
		}
	}
	
	//checks triple double dice
	private void checkTripleDoubleDice(){
		if(dice[0].getResult() == dice[1].getResult()){
		orderedPlayer[counter].setExtraTurn(orderedPlayer[counter].getExtraTurn()+1);
			if(orderedPlayer[counter].getExtraTurn()==3){
				isRunning=false;
				orderedPlayer[counter].setJailed(true);
				showGreedy();
			}
		}
	}

	//called when landed on a chance card
	private void showChanceCard(int position) {
		frame.setIcon(new ImageIcon(getClass().getResource("/images/chance.png")));
		chanceNumber = board.getBlock()[position].getChance().shuffleChanceCards();
		if(chanceNumber==6&&board.getBlock()[position].getChance().isKeyUsed()){
			do{
				chanceNumber = board.getBlock()[position].getChance().shuffleChanceCards();
			}while(chanceNumber==6);
		}
		
		myUrl= this.getClass().getResource("images/chance"+chanceNumber+".jpg"); 
		chanceCardLabel.setIcon(new ImageIcon(myUrl));

		acceptButtonOption=3;
		acceptButton.setEnabled(true);
	}
	
	//called when landed on a community chest
	private void showChestCard(int position) {
		frame.setIcon(new ImageIcon(getClass().getResource("/images/chest.png")));
		
		chestNumber = board.getBlock()[position].getChest().shuffleChestCards();
		if(chestNumber==14&&board.getBlock()[position].getChest().isKeyUsed()){
			do{
				chestNumber = board.getBlock()[position].getChest().shuffleChestCards();
			}while(chestNumber==14);
		}
		
		myUrl= this.getClass().getResource("images/chest"+chestNumber+".jpg"); 
		chestCardLabel.setIcon(new ImageIcon(myUrl));

		acceptButtonOption=4;
		acceptButton.setEnabled(true);
	}
	
	//go to jail
	private void goToJail(){
		orderedPlayer[counter].goToJail(orderedPlayer, counter);
		updateTextFields();
		changeTile();
		orderedPlayer[counter].getToken().setX(28);
		orderedPlayer[counter].getToken().setY(626);
		
		if(orderedPlayer[counter].getAssignedLabel()==1)
			token1.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==2)
			token2.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==3)
			token3.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==4)
			token4.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==5)
			token5.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==6)
			token6.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==7)
			token7.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		if(orderedPlayer[counter].getAssignedLabel()==8)
			token8.setLocation(orderedPlayer[counter].getToken().getX(),orderedPlayer[counter].getToken().getY());
		
		tileClicked=orderedPlayer[counter].getPosition();
		isIgnored=false;
		myUrl= this.getClass().getResource("images/goToJail.au"); 
		makeSound();
	}

	//changes dice image
	public void changeDiceImage(int diceResult1, int diceResult2){
		myUrl= this.getClass().getResource("images/dice1-"+diceResult1+".png"); 
		dice1.setIcon(new ImageIcon(myUrl));
		myUrl= this.getClass().getResource("images/dice2-"+diceResult2+".png"); 
		dice2.setIcon(new ImageIcon(myUrl));
	}

	//function for playing sounds
	@SuppressWarnings("static-access")
	public void makeSound(){
		try {
	        app = new java.applet.Applet(); 
	        sound = app.newAudioClip(myUrl); 
	        }catch(Exception e) {
	        System.out.println(e);
	        } 
	    sound.play();
	}
	
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//BUTTON ACTIONS//
/////////////////////////////////////////////////////////////////////////////////////////////////////////

	@SuppressWarnings("unused")
	private static void installLnF() {
		try {
			String lnfClassname = PREFERRED_LOOK_AND_FEEL;
			if (lnfClassname == null)
				lnfClassname = UIManager.getCrossPlatformLookAndFeelClassName();
			UIManager.setLookAndFeel(lnfClassname);
		} catch (Exception e) {
			System.err.println("Cannot install " + PREFERRED_LOOK_AND_FEEL
					+ " on this platform:" + e.getMessage());
		}
	}

	/**
	 * Main entry of the class.
	 * Note: This class is only created so that you can easily preview the result at runtime.
	 * It is not expected to be managed by the designer.
	 * You can modify it as you like.
	 */
	/*
	public static void createAndShowGui() {
		installLnF();
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				GameFrame frame = new GameFrame();
				frame.setDefaultCloseOperation(GameFrame.EXIT_ON_CLOSE);
				frame.setTitle("Monopoly");
				frame.getContentPane().setPreferredSize(frame.getSize());
				frame.pack();
				frame.setLocationRelativeTo(null);
				frame.setVisible(true);
			}
		});
	}
	*/
	private void rollDiceButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		
		if(godModeDice1==0)
			dice[0].roll();
		else
			dice[0].setResult(godModeDice1);
			
		if(godModeDice2==0)
			dice[1].roll();
		else
			dice[1].setResult(godModeDice2);
		
		checkRollDice = false;
		rollDiceButton.setEnabled(false);
		doubleDiceButton.setEnabled(false);
		
		run();
		t = new Thread(this);
		t.start();
		
		isWaiting = true;
		isRolling = true;
		isRunning = true;
		
		isIgnored=true;
		disableDockButtons();
	}
	
	public void startGame() {
		tileClicked=orderedPlayer[counter].getPosition();
		checkEnabledButtons();
		checkRollDice = true;
		rollDiceButton.setEnabled(true);
		updateTextFields();
		
		numberOfAlivePlayers = numberOfPlayers;
		
		dice[0] = new Dice();
		dice[1] = new Dice();
		
		for(int i=0;i<numberOfPlayers;i++){
			if(orderedPlayer[i].getAssignedLabel()==1){
				token1.setVisible(true);
				if(("Kira").equals(orderedPlayer[i].getName())){
					isGodMode=true;
					godModeLabel.setVisible(true);
					dice1.setIcon(new ImageIcon(this.getClass().getResource("images/dice1-0.png")));
					dice2.setIcon(new ImageIcon(this.getClass().getResource("images/dice2-0.png")));
				}
			}
			if(orderedPlayer[i].getAssignedLabel()==2)
				token2.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==3)
				token3.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==4)
				token4.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==5)
				token5.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==6)
				token6.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==7)
				token7.setVisible(true);
			if(orderedPlayer[i].getAssignedLabel()==8)
				token8.setVisible(true);
		}
		updateCurrentToken();
		changeTile();
		createToolTipTexts();
		isIgnored=false;
		myUrl= this.getClass().getResource("images/song.au"); 
		makeSound();
	}
	
	private void endTurnButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		checkEndTurn = false;
		endTurnButton.setEnabled(false);

		if(orderedPlayer[counter].getMoney()<1000000){
			showBankruptcy();
		}else{
			nextPlayer();
		}
	}

	private void rollForDoublesActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		
		if(godModeDice1==0)
			dice[0].roll();
		else
			dice[0].setResult(godModeDice1);
			
		if(godModeDice2==0)
			dice[1].roll();
		else
			dice[1].setResult(godModeDice2);
		
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		rollForDoubles.setEnabled(false);
		postBail.setEnabled(false);
		keyButton.setEnabled(false);
		
		run();
		t = new Thread(this);
		t.start();
		isRolling = true;
		isWaiting = true;
		
		disableDockButtons();
	}

	private void postBailActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		orderedPlayer[counter].setMoney(orderedPlayer[counter].getMoney()-500000);
		updateTextFields();
		orderedPlayer[counter].setJailed(false);
		orderedPlayer[counter].setJailRoll(0);
		checkRollDice = true;
		rollDiceButton.setEnabled(true);
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		rollForDoubles.setEnabled(false);
		postBail.setEnabled(false);
		keyButton.setEnabled(false);
		isIgnored=false;
	}
	
	private void keyButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		orderedPlayer[counter].setJailed(false);
		
		if(orderedPlayer[counter].hasChestKey()){
			orderedPlayer[counter].setHasChestKey(false);
			board.getBlock()[2].getChest().setKeyUsed(false);
			board.getBlock()[17].getChest().setKeyUsed(false);
			board.getBlock()[33].getChest().setKeyUsed(false);
		}
		else
		{
			orderedPlayer[counter].setHasChanceKey(false);
			board.getBlock()[7].getChance().setKeyUsed(false);
			board.getBlock()[22].getChance().setKeyUsed(false);
			board.getBlock()[36].getChance().setKeyUsed(false);
		}
		
		orderedPlayer[counter].setJailRoll(0);
		checkRollDice = true;
		rollDiceButton.setEnabled(true);
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		rollForDoubles.setEnabled(false);
		postBail.setEnabled(false);
		keyButton.setEnabled(false);
		resetBabyDeeds();
		updateBabyDeeds();
		isIgnored=false;
	}

	private void twoMillionTaxButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		tenPercentTaxButton.setEnabled(false);
		twoMillionTaxButton.setEnabled(false);
		board.getBlock()[4].getTax().tile4Function1(orderedPlayer[counter]);
		updateTextFields();
		showDoubleDice();
		checkEnabledButtons();
		isIgnored=false;
	}

	private void tenPercentTaxButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		tenPercentTaxButton.setEnabled(false);
		twoMillionTaxButton.setEnabled(false);
		board.getBlock()[4].getTax().tile4Function2(orderedPlayer[counter]);
		updateTextFields();
		showDoubleDice();
		checkEnabledButtons();
		isIgnored=false;
	}

	private void acceptButtonActionActionPerformed(ActionEvent event) {
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		if(acceptButtonOption==1){
			orderedPlayer[counter].setJailed(true);
			goToJail();
			checkEndTurn = true;
			endTurnButton.setEnabled(true);
			checkEnabledButtons();
		}
		
		if(acceptButtonOption==2){
			myUrl= this.getClass().getResource("images/accept.au"); 
			makeSound();
			board.getBlock()[38].getTax().tile38Function(orderedPlayer[counter]);
			updateTextFields();
			showDoubleDice();
			isIgnored=false;
			checkEnabledButtons();
		}
		
		if(acceptButtonOption==3){
			chanceCardLabel.setIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			
			board.getBlock()[7].getChance().getChanceAction(orderedPlayer, numberOfPlayers, numberOfAlivePlayers, counter, chanceNumber);
			
			if(orderedPlayer[counter].isJailed()){
				goToJail();
				checkEndTurn = true;
				endTurnButton.setEnabled(true);
				checkEnabledButtons();
			}else{
				if(chanceNumber == 6){
					board.getBlock()[7].getChance().setKeyUsed(true);
					board.getBlock()[22].getChance().setKeyUsed(true);
					board.getBlock()[36].getChance().setKeyUsed(true);
				}
				if(orderedPlayer[counter].getTotalSteps()!=0){
					run();
					t = new Thread(this);
					t.start();
					isRunning=true;
					
					isIgnored=true;
					disableDockButtons();
				}else{
					isIgnored=false;
					showDoubleDice();
					checkEnabledButtons();
				}
			}
			updateTextFields();
			updateBabyDeeds();
		}
		
		if(acceptButtonOption==4){
			chestCardLabel.setIcon(new ImageIcon(getClass().getResource("/images/empty.png")));
			board.getBlock()[17].getChest().getChestAction(orderedPlayer, numberOfPlayers, numberOfAlivePlayers, counter, chestNumber);
			
			if(orderedPlayer[counter].isJailed()){
				goToJail();
				checkEndTurn = true;
				endTurnButton.setEnabled(true);
				checkEnabledButtons();
			}else{
				if(chestNumber == 14){
					board.getBlock()[2].getChest().setKeyUsed(true);
					board.getBlock()[17].getChest().setKeyUsed(true);
					board.getBlock()[33].getChest().setKeyUsed(true);
				}
				if(orderedPlayer[counter].getTotalSteps()!=0){
					run();
					t = new Thread(this);
					t.start();
					isRunning=true;

					isIgnored=true;
					disableDockButtons();
				}else{
					isIgnored=false;
					showDoubleDice();
					checkEnabledButtons();
				}
			}
			updateTextFields();
			updateBabyDeeds();
		}
		acceptButton.setEnabled(false);
	}

	private void changeBackground1ActionActionPerformed(ActionEvent event) {
		gameBoard.setIcon(new ImageIcon(getClass().getResource("/images/board_default.jpg")));
	}

	private void changeBackground2ActionActionPerformed(ActionEvent event) {
		gameBoard.setIcon(new ImageIcon(getClass().getResource("/images/board_blue.jpg")));
	}

	private void changeBackground3ActionActionPerformed(ActionEvent event) {
		gameBoard.setIcon(new ImageIcon(getClass().getResource("/images/board_pink.jpg")));
	}

	private void changeBackground4ActionActionPerformed(ActionEvent event) {
		gameBoard.setIcon(new ImageIcon(getClass().getResource("/images/board_yellow.jpg")));
	}
	
	private void acceptButton2ActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		
		if(acceptButtonOption==1){
			auctionButton.setEnabled(false);
			orderedPlayer[counter].buyProperty(board.getBlock()[orderedPlayer[counter].getPosition()], orderedPlayer, counter, board);
			updateRoofs();
			updateBabyDeeds();
			showDoubleDice();
			tileClicked=orderedPlayer[counter].getPosition();
		}
		if(acceptButtonOption==2){
			switch(board.getBlock()[orderedPlayer[counter].getPosition()].getType()){
			case 1:
				orderedPlayer[counter].payRent(orderedPlayer, counter, rent, board.getBlock());
				break;
			case 2:
				orderedPlayer[counter].payRent(orderedPlayer, counter, rent, board.getBlock());
				break;
			case 3:
				orderedPlayer[counter].payRent(orderedPlayer, counter, rent, board.getBlock());
				break;
			}
			tileClicked=orderedPlayer[counter].getPosition();
			showDoubleDice();
		}
		
		if(acceptButtonOption==3){
			orderedPlayer[counter].buyHouse(board.getBlock(), orderedPlayer, counter, tileClicked);
			updateHouse();
			isIgnored=false;
		}
		if(acceptButtonOption==4){
			orderedPlayer[counter].sellHouse(board.getBlock(), orderedPlayer, counter, tileClicked);
			updateHouse();
			isIgnored=false;
		}
		if(acceptButtonOption==5){
			orderedPlayer[counter].mortgageProperty(orderedPlayer, counter, board.getBlock(), tileClicked);
			updateCells();
			updateBabyDeeds();
			isIgnored=false;
		}
		if(acceptButtonOption==6){
			orderedPlayer[counter].redeemProperty(orderedPlayer, counter, board.getBlock(), tileClicked);
			updateCells();
			updateBabyDeeds();
			isIgnored=false;
		}
		
		checkEnabledButtons();
		isIgnored=false;
		acceptButton2.setEnabled(false);
		updateTextFields();
		property1TextField.setText(null);
		property2TextField.setText(null);
	}
	
	private void babyDeed0ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=0;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay0.png")));
		}
	}
	private void babyDeed1ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=1;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay1.png")));
		}
	}
	private void babyDeed2ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=2;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay2.png")));
		}
	}
	private void babyDeed3ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=3;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay3.png")));
		}
	}
	private void babyDeed4ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=4;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay4.png")));
		}
	}
	private void babyDeed5ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=5;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay5.png")));
		}
	}
	private void babyDeed6ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=6;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay6.png")));
		}
	}
	private void babyDeed7ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=7;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay7.png")));
		}
	}
	private void babyDeed8ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=8;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay8.png")));
		}
	}
	private void babyDeed9ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=9;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay9.png")));
		}
	}
	private void babyDeed10ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=10;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay10.png")));
		}
	}
	private void babyDeed11ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=11;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay11.png")));
		}
	}
	private void babyDeed12ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=12;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay12.png")));
		}
	}
	private void babyDeed13ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=13;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay13.png")));
		}
	}
	private void babyDeed14ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=14;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay14.png")));
		}
	}
	private void babyDeed15ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=15;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay15.png")));
		}
	}
	private void babyDeed16ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=16;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay16.png")));
		}
	}
	private void babyDeed17ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=17;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay17.png")));
		}
	}
	private void babyDeed18ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=18;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay18.png")));
		}
	}
	private void babyDeed19ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=19;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay19.png")));
		}
	}
	private void babyDeed20ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=20;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay20.png")));
		}
	}
	private void babyDeed21ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=21;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay21.png")));
		}
	}
	private void babyDeed22ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=22;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay22.png")));
		}
	}
	private void babyDeed23ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=23;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay23.png")));
		}
	}
	private void babyDeed24ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=24;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay24.png")));
		}
	}
	private void babyDeed25ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=25;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay25.png")));
		}
	}
	private void babyDeed26ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=26;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay26.png")));
		}
	}
	private void babyDeed27ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=27;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay27.png")));
		}
	}
	private void babyDeed28ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=28;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay28.png")));
		}
	}
	private void babyDeed29ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=29;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay29.png")));
		}
	}
	private void babyDeed30ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=30;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay30.png")));
		}
	}
	private void babyDeed31ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=31;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay31.png")));
		}
	}
	private void babyDeed32ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=32;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay32.png")));
		}
	}
	private void babyDeed33ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=33;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay33.png")));
		}
	}
	private void babyDeed34ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=34;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay34.png")));
		}
	}
	private void babyDeed35ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=35;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay35.png")));
		}
	}
	private void babyDeed36ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=36;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay36.png")));
		}
	}
	private void babyDeed37ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=37;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay37.png")));
		}
	}
	private void babyDeed38ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=38;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay38.png")));
		}
	}
	private void babyDeed39ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=39;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplay39.png")));
		}
	}
	private void babyDeedKey1ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=0;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplayKey1.png")));
		}
	}
	private void babyDeedKey2ActionActionPerformed(ActionEvent event) {
		if(!isIgnored){
			tileClicked=0;
			checkEnabledButtons();
			showTile.setIcon(new ImageIcon(getClass().getResource("/images/tileDisplayKey2.png")));
		}
	}
	private void buildButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		showHousePrice();
		isIgnored=true;
	}

	private void sellButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		showSellHouse();
		isIgnored=true;
	}
	private void tradeButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		isMoneyShowed=false;
		chooseTradee();
		isIgnored=true;
	}
	private void auctionButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		frame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame.png")));
		property1TextField.setText(null);
		property2TextField.setText(null);
		auctionButton.setEnabled(false);
		acceptButton2.setEnabled(false);
		isMoneyShowed=false;
		chooseHighestBidder();
		isIgnored=true;
	}
	private void mortgageButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		showMortgage();
		isIgnored=true;
	}
	private void redeemButtonActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		showRedeem();
		isIgnored=true;
	}
	private void dice1ActionActionPerformed(ActionEvent event) {
		if(isGodMode){
			godModeDice1++;
			if(godModeDice1==7)
				godModeDice1=0;
			godModeChangeDice();
		}
	}
	private void dice2ActionActionPerformed(ActionEvent event) {
		if(isGodMode){
			godModeDice2++;
			if(godModeDice2==7)
				godModeDice2=0;
			godModeChangeDice();
		}
	}
	private void showStatsActionActionPerformed(ActionEvent event) {
		if(!isMoneyShowed){
			isMoneyShowed=true;
			showStats.setIcon(new ImageIcon(getClass().getResource("/images/showMoney_p.png")));
			playerMoneyGlass.setIcon(new ImageIcon(getClass().getResource("/images/playerMoneyGlass.png")));
		}
		else{
			isMoneyShowed=false;
			showStats.setIcon(new ImageIcon(getClass().getResource("/images/showMoney.png")));
			playerMoneyGlass.setIcon(new ImageIcon(getClass().getResource("/images/emptyGlass.png")));
		}
		updateTextFields();
	}

	private void chooseTradee1ActionActionPerformed(ActionEvent event) {
		counter2 = 0;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee2ActionActionPerformed(ActionEvent event) {
		counter2 = 1;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee3ActionActionPerformed(ActionEvent event) {
		counter2 = 2;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee4ActionActionPerformed(ActionEvent event) {
		counter2 = 3;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee5ActionActionPerformed(ActionEvent event) {
		counter2 = 4;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee6ActionActionPerformed(ActionEvent event) {
		counter2 = 5;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee7ActionActionPerformed(ActionEvent event) {
		counter2 = 6;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void chooseTradee8ActionActionPerformed(ActionEvent event) {
		counter2 = 7;
		if(acceptButtonOption==1)
			MainFrame.startTrade();
		if(acceptButtonOption==2)
			MainFrame.startAuction();
	}
	private void reviewAssetsActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		isIgnored=false;
		bankruptcyFrame.setIcon(new ImageIcon(getClass().getResource("/images/emptyFrame_b.png")));
		declareBankruptcy.setEnabled(false);
		reviewAssets.setEnabled(false);
		checkEnabledButtons();
		checkEndTurn = true;
		endTurnButton.setEnabled(true);
	}
	private void declareBankruptcyActionActionPerformed(ActionEvent event) {
		myUrl= this.getClass().getResource("images/accept.au"); 
		makeSound();
		bankruptedTextField.setText(orderedPlayer[counter].getName());
		notebook1.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook2.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook3.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook4.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook5.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook6.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook7.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook8.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook9.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		notebook10.setIcon(new ImageIcon(getClass().getResource("/images/notebook.png")));
		bankruptcyText.setIcon(new ImageIcon(getClass().getResource("/images/bankruptcyText.png")));
		
		run();
		t = new Thread(this);
		t.start();

		isFading = true;
		isLaughing = true;
		declareBankruptcy.setEnabled(false);
		reviewAssets.setEnabled(false);
	}
}
